diff --git a/plugins/adminmenu/dynamicmenu.sp b/plugins/adminmenu/dynamicmenu.sp index 0b96bf12..a534ef76 100644 --- a/plugins/adminmenu/dynamicmenu.sp +++ b/plugins/adminmenu/dynamicmenu.sp @@ -371,18 +371,22 @@ void ParseConfigs() public SMCResult NewSection(SMCParser smc, const char[] name, bool opt_quotes) { - + return SMCParse_Continue; } public SMCResult KeyValue(SMCParser smc, const char[] key, const char[] value, bool key_quotes, bool value_quotes) { g_groupList.groupListName.PushString(key); g_groupList.groupListCommand.PushString(value); + + return SMCParse_Continue; } public SMCResult EndSection(SMCParser smc) { g_groupCount = g_groupList.groupListName.Length; + + return SMCParse_Continue; } public void DynamicMenuCategoryHandler(TopMenu topmenu, diff --git a/plugins/basebans/ban.sp b/plugins/basebans/ban.sp index f42548b5..813769f8 100644 --- a/plugins/basebans/ban.sp +++ b/plugins/basebans/ban.sp @@ -205,6 +205,8 @@ public int MenuHandler_BanReasonList(Menu menu, MenuAction action, int param1, i PrepareBan(param1, playerinfo[param1].banTarget, playerinfo[param1].banTime, info); } } + + return 0; } public int MenuHandler_BanPlayerList(Menu menu, MenuAction action, int param1, int param2) @@ -243,6 +245,8 @@ public int MenuHandler_BanPlayerList(Menu menu, MenuAction action, int param1, i DisplayBanTimeMenu(param1); } } + + return 0; } public int MenuHandler_BanTimeList(Menu menu, MenuAction action, int param1, int param2) @@ -267,6 +271,8 @@ public int MenuHandler_BanTimeList(Menu menu, MenuAction action, int param1, int DisplayBanReasonMenu(param1); } + + return 0; } public Action Command_Ban(int client, int args) diff --git a/plugins/basechat.sp b/plugins/basechat.sp index 74d4070f..e4879da1 100644 --- a/plugins/basechat.sp +++ b/plugins/basechat.sp @@ -435,4 +435,5 @@ void SendPanelToAll(int from, char[] message) public int Handler_DoNothing(Menu menu, MenuAction action, int param1, int param2) { /* Do nothing */ + return 0; } diff --git a/plugins/basecomm/gag.sp b/plugins/basecomm/gag.sp index 31ae7ce3..3635dc9a 100644 --- a/plugins/basecomm/gag.sp +++ b/plugins/basecomm/gag.sp @@ -172,6 +172,8 @@ public int MenuHandler_GagPlayer(Menu menu, MenuAction action, int param1, int p DisplayGagTypesMenu(param1); } } + + return 0; } public int MenuHandler_GagTypes(Menu menu, MenuAction action, int param1, int param2) @@ -246,6 +248,8 @@ public int MenuHandler_GagTypes(Menu menu, MenuAction action, int param1, int pa } } } + + return 0; } void PerformMute(int client, int target, bool silent=false) diff --git a/plugins/basecommands/execcfg.sp b/plugins/basecommands/execcfg.sp index 61eb05eb..670a5f77 100644 --- a/plugins/basecommands/execcfg.sp +++ b/plugins/basecommands/execcfg.sp @@ -90,6 +90,8 @@ public int MenuHandler_ExecCFG(Menu menu, MenuAction action, int param1, int par Panel panel = view_as(param2); panel.SetTitle(title); } + + return 0; } public Action Command_ExecCfg(int client, int args) @@ -152,15 +154,17 @@ void ParseConfigs() public SMCResult NewSection(SMCParser smc, const char[] name, bool opt_quotes) { - + return SMCParse_Continue; } public SMCResult KeyValue(SMCParser smc, const char[] key, const char[] value, bool key_quotes, bool value_quotes) { g_ConfigMenu.AddItem(key, value); + + return SMCParse_Continue; } public SMCResult EndSection(SMCParser smc) { - + return SMCParse_Continue; } diff --git a/plugins/basecommands/kick.sp b/plugins/basecommands/kick.sp index 6fc2b181..243abb0f 100644 --- a/plugins/basecommands/kick.sp +++ b/plugins/basecommands/kick.sp @@ -119,6 +119,8 @@ public int MenuHandler_Kick(Menu menu, MenuAction action, int param1, int param2 DisplayKickMenu(param1); } } + + return 0; } public Action Command_Kick(int client, int args) diff --git a/plugins/basecommands/map.sp b/plugins/basecommands/map.sp index cf819ae2..cb4d29b6 100644 --- a/plugins/basecommands/map.sp +++ b/plugins/basecommands/map.sp @@ -62,6 +62,8 @@ public int MenuHandler_ChangeMap(Menu menu, MenuAction action, int param1, int p Panel panel = view_as(param2); panel.SetTitle(title); } + + return 0; } public void AdminMenu_Map(TopMenu topmenu, diff --git a/plugins/basecommands/who.sp b/plugins/basecommands/who.sp index c67bc0cd..f6bc949e 100644 --- a/plugins/basecommands/who.sp +++ b/plugins/basecommands/who.sp @@ -161,7 +161,10 @@ public int MenuHandler_Who(Menu menu, MenuAction action, int param1, int param2) } */ } + + return 0; } + public Action Command_Who(int client, int args) { bool is_admin = false; diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index a9d331a4..f17bcfd5 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -189,6 +189,8 @@ public void ConVarChange_TimeleftInterval(ConVar convar, const char[] oldValue, public Action Timer_DisplayTimeleft(Handle timer) { ShowTimeLeft(0, PRINT_TO_ALL_ALWAYS); + + return Plugin_Continue; } public Action Command_Timeleft(int client, int args) diff --git a/plugins/basevotes/voteban.sp b/plugins/basevotes/voteban.sp index 5506d12a..61f2ec5f 100644 --- a/plugins/basevotes/voteban.sp +++ b/plugins/basevotes/voteban.sp @@ -123,6 +123,8 @@ public int MenuHandler_Ban(Menu menu, MenuAction action, int param1, int param2) DisplayVoteBanMenu(param1, target); } } + + return 0; } public Action Command_Voteban(int client, int args) diff --git a/plugins/basevotes/votekick.sp b/plugins/basevotes/votekick.sp index 38405073..7864b971 100644 --- a/plugins/basevotes/votekick.sp +++ b/plugins/basevotes/votekick.sp @@ -121,6 +121,8 @@ public int MenuHandler_Kick(Menu menu, MenuAction action, int param1, int param2 DisplayVoteKickMenu(param1, target); } } + + return 0; } public Action Command_Votekick(int client, int args) diff --git a/plugins/basevotes/votemap.sp b/plugins/basevotes/votemap.sp index 0aea4a80..57e8d2c6 100644 --- a/plugins/basevotes/votemap.sp +++ b/plugins/basevotes/votemap.sp @@ -132,6 +132,8 @@ public int MenuHandler_Confirm(Menu menu, MenuAction action, int param1, int par ResetMenu(); } + + return 0; } public int MenuHandler_Map(Menu menu, MenuAction action, int param1, int param2) diff --git a/plugins/funcommands.sp b/plugins/funcommands.sp index f69d0bd2..c3c7840f 100644 --- a/plugins/funcommands.sp +++ b/plugins/funcommands.sp @@ -293,6 +293,8 @@ public Action Event_RoundEnd(Event event, const char[] name, bool dontBroadcast) KillAllFireBombs(); KillAllFreezes(); KillAllDrugs(); + + return Plugin_Continue; } public void OnAdminMenuReady(Handle aTopMenu) diff --git a/plugins/funcommands/beacon.sp b/plugins/funcommands/beacon.sp index 869adc32..49d19eb5 100644 --- a/plugins/funcommands/beacon.sp +++ b/plugins/funcommands/beacon.sp @@ -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) diff --git a/plugins/funcommands/blind.sp b/plugins/funcommands/blind.sp index a1bf2fb3..3b94c2d4 100644 --- a/plugins/funcommands/blind.sp +++ b/plugins/funcommands/blind.sp @@ -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) diff --git a/plugins/funcommands/drug.sp b/plugins/funcommands/drug.sp index e4f0352a..c3e48b71 100644 --- a/plugins/funcommands/drug.sp +++ b/plugins/funcommands/drug.sp @@ -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) diff --git a/plugins/funcommands/fire.sp b/plugins/funcommands/fire.sp index 1daad783..0be9b791 100644 --- a/plugins/funcommands/fire.sp +++ b/plugins/funcommands/fire.sp @@ -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) diff --git a/plugins/funcommands/gravity.sp b/plugins/funcommands/gravity.sp index 4f2cc833..aa79f799 100644 --- a/plugins/funcommands/gravity.sp +++ b/plugins/funcommands/gravity.sp @@ -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) diff --git a/plugins/funcommands/ice.sp b/plugins/funcommands/ice.sp index 3f045498..0c793093 100644 --- a/plugins/funcommands/ice.sp +++ b/plugins/funcommands/ice.sp @@ -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) diff --git a/plugins/funcommands/noclip.sp b/plugins/funcommands/noclip.sp index de7993ba..33ff90fe 100644 --- a/plugins/funcommands/noclip.sp +++ b/plugins/funcommands/noclip.sp @@ -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) diff --git a/plugins/funcommands/timebomb.sp b/plugins/funcommands/timebomb.sp index 1fbb3aa0..36e5bccb 100644 --- a/plugins/funcommands/timebomb.sp +++ b/plugins/funcommands/timebomb.sp @@ -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) diff --git a/plugins/funvotes/voteburn.sp b/plugins/funvotes/voteburn.sp index 78081f21..3627f836 100644 --- a/plugins/funvotes/voteburn.sp +++ b/plugins/funvotes/voteburn.sp @@ -130,6 +130,8 @@ public int MenuHandler_Burn(Menu menu, MenuAction action, int param1, int param2 DisplayVoteBurnMenu(param1, target, name); } } + + return 0; } public Action Command_VoteBurn(int client, int args) diff --git a/plugins/funvotes/voteslay.sp b/plugins/funvotes/voteslay.sp index 530bb2d9..0c0ace0a 100644 --- a/plugins/funvotes/voteslay.sp +++ b/plugins/funvotes/voteslay.sp @@ -130,6 +130,8 @@ public int MenuHandler_Slay(Menu menu, MenuAction action, int param1, int param2 DisplayVoteSlayMenu(param1, target, name); } } + + return 0; } public Action Command_VoteSlay(int client, int args) diff --git a/plugins/mapchooser.sp b/plugins/mapchooser.sp index 5e08e870..439cc3a5 100644 --- a/plugins/mapchooser.sp +++ b/plugins/mapchooser.sp @@ -1175,6 +1175,8 @@ public int Native_InitiateVote(Handle plugin, int numParams) LogAction(-1, -1, "Starting map vote because outside request"); InitiateVote(when, inputarray); + + return 0; } /* native bool CanMapChooserStartVote(); */ @@ -1202,7 +1204,7 @@ public int Native_GetExcludeMapList(Handle plugin, int numParams) if (array == null) { - return; + return 0; } int size = g_OldMapList.Length; char map[PLATFORM_MAX_PATH]; @@ -1213,7 +1215,7 @@ public int Native_GetExcludeMapList(Handle plugin, int numParams) array.PushString(map); } - return; + return 0; } /* native void GetNominatedMapList(ArrayList maparray, ArrayList ownerarray = null); */ @@ -1223,7 +1225,7 @@ public int Native_GetNominatedMapList(Handle plugin, int numParams) ArrayList ownerarray = view_as(GetNativeCell(2)); if (maparray == null) - return; + return 0; char map[PLATFORM_MAX_PATH]; @@ -1240,7 +1242,7 @@ public int Native_GetNominatedMapList(Handle plugin, int numParams) } } - return; + return 0; } /* Add functions for persistent previous map storage */ diff --git a/plugins/playercommands/rename.sp b/plugins/playercommands/rename.sp index 6a0853e5..eb887f2a 100644 --- a/plugins/playercommands/rename.sp +++ b/plugins/playercommands/rename.sp @@ -113,6 +113,8 @@ public int MenuHandler_Rename(Menu menu, MenuAction action, int param1, int para } DisplayRenameTargetMenu(param1); } + + return 0; } void RandomizeName(int client) diff --git a/plugins/playercommands/slap.sp b/plugins/playercommands/slap.sp index 3164667f..f8d1d1fa 100644 --- a/plugins/playercommands/slap.sp +++ b/plugins/playercommands/slap.sp @@ -112,6 +112,8 @@ public int MenuHandler_SlapDamage(Menu menu, MenuAction action, int param1, int DisplaySlapTargetMenu(param1); } + + return 0; } public int MenuHandler_Slap(Menu menu, MenuAction action, int param1, int param2) @@ -157,6 +159,8 @@ public int MenuHandler_Slap(Menu menu, MenuAction action, int param1, int param2 DisplaySlapTargetMenu(param1); } + + return 0; } public Action Command_Slap(int client, int args) diff --git a/plugins/playercommands/slay.sp b/plugins/playercommands/slay.sp index f1098a16..3d78b21e 100644 --- a/plugins/playercommands/slay.sp +++ b/plugins/playercommands/slay.sp @@ -111,6 +111,8 @@ public int MenuHandler_Slay(Menu menu, MenuAction action, int param1, int param2 DisplaySlayMenu(param1); } + + return 0; } public Action Command_Slay(int client, int args) diff --git a/plugins/rockthevote.sp b/plugins/rockthevote.sp index de491444..a46bd45d 100644 --- a/plugins/rockthevote.sp +++ b/plugins/rockthevote.sp @@ -213,6 +213,8 @@ void AttemptRTV(int client) public Action Timer_DelayRTV(Handle timer) { g_RTVAllowed = true; + + return Plugin_Continue; } void StartRTV()