Add missing return values in plugins
This commit is contained in:
@@ -194,6 +194,8 @@ public int MenuHandler_Beacon(Menu menu, MenuAction action, int param1, int para
|
||||
DisplayBeaconMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_Beacon(int client, int args)
|
||||
|
||||
@@ -164,7 +164,7 @@ public int MenuHandler_Blind(Menu menu, MenuAction action, int param1, int param
|
||||
{
|
||||
g_BlindTarget[param1] = userid;
|
||||
DisplayAmountMenu(param1);
|
||||
return; // Return, because we went to a new menu and don't want the re-draw to occur.
|
||||
return 0; // Return, because we went to a new menu and don't want the re-draw to occur.
|
||||
}
|
||||
|
||||
/* Re-draw the menu if they're still valid */
|
||||
@@ -174,7 +174,7 @@ public int MenuHandler_Blind(Menu menu, MenuAction action, int param1, int param
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int MenuHandler_Amount(Menu menu, MenuAction action, int param1, int param2)
|
||||
@@ -221,6 +221,8 @@ public int MenuHandler_Amount(Menu menu, MenuAction action, int param1, int para
|
||||
DisplayBlindMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_Blind(int client, int args)
|
||||
|
||||
@@ -278,6 +278,8 @@ public int MenuHandler_Drug(Menu menu, MenuAction action, int param1, int param2
|
||||
DisplayDrugMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_Drug(int client, int args)
|
||||
|
||||
@@ -316,6 +316,8 @@ public int MenuHandler_Burn(Menu menu, MenuAction action, int param1, int param2
|
||||
DisplayBurnMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int MenuHandler_FireBomb(Menu menu, MenuAction action, int param1, int param2)
|
||||
@@ -362,6 +364,8 @@ public int MenuHandler_FireBomb(Menu menu, MenuAction action, int param1, int pa
|
||||
DisplayFireBombMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_Burn(int client, int args)
|
||||
|
||||
@@ -121,7 +121,7 @@ public int MenuHandler_Gravity(Menu menu, MenuAction action, int param1, int par
|
||||
{
|
||||
g_GravityTarget[param1] = userid;
|
||||
DisplayGravityAmountMenu(param1);
|
||||
return; // Return, because we went to a new menu and don't want the re-draw to occur.
|
||||
return 0; // Return, because we went to a new menu and don't want the re-draw to occur.
|
||||
}
|
||||
|
||||
/* Re-draw the menu if they're still valid */
|
||||
@@ -130,8 +130,8 @@ public int MenuHandler_Gravity(Menu menu, MenuAction action, int param1, int par
|
||||
DisplayGravityMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int MenuHandler_GravityAmount(Menu menu, MenuAction action, int param1, int param2)
|
||||
@@ -179,6 +179,8 @@ public int MenuHandler_GravityAmount(Menu menu, MenuAction action, int param1, i
|
||||
DisplayGravityMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_Gravity(int client, int args)
|
||||
|
||||
@@ -431,6 +431,8 @@ public int MenuHandler_Freeze(Menu menu, MenuAction action, int param1, int para
|
||||
DisplayFreezeMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public int MenuHandler_FreezeBomb(Menu menu, MenuAction action, int param1, int param2)
|
||||
@@ -477,6 +479,8 @@ public int MenuHandler_FreezeBomb(Menu menu, MenuAction action, int param1, int
|
||||
DisplayFreezeBombMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_Freeze(int client, int args)
|
||||
|
||||
@@ -122,6 +122,8 @@ public int MenuHandler_NoClip(Menu menu, MenuAction action, int param1, int para
|
||||
DisplayNoClipMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_NoClip(int client, int args)
|
||||
|
||||
@@ -288,6 +288,8 @@ public int MenuHandler_TimeBomb(Menu menu, MenuAction action, int param1, int pa
|
||||
DisplayTimeBombMenu(param1);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Action Command_TimeBomb(int client, int args)
|
||||
|
||||
Reference in New Issue
Block a user