Update plugins for transitional methods.

This commit is contained in:
David Anderson
2014-12-13 13:29:15 -08:00
parent 722a23c818
commit 1328984e0b
48 changed files with 620 additions and 620 deletions
+5 -5
View File
@@ -48,7 +48,7 @@ public Plugin:myinfo =
TopMenu hTopMenu;
new Handle:g_MapList;
Menu g_MapList;
new Handle:g_ProtectedVars;
#include "basecommands/kick.sp"
@@ -82,8 +82,8 @@ public OnPluginStart()
}
g_MapList = CreateMenu(MenuHandler_ChangeMap, MenuAction_Display);
SetMenuTitle(g_MapList, "%T", "Please select a map", LANG_SERVER);
SetMenuExitBackButton(g_MapList, true);
g_MapList.SetTitle("%T", "Please select a map", LANG_SERVER);
g_MapList.ExitBackButton = true;
char mapListPath[PLATFORM_MAX_PATH];
BuildPath(Path_SM, mapListPath, sizeof(mapListPath), "configs/adminmenu_maplist.ini");
@@ -284,7 +284,7 @@ public Action:Command_Cvar(client, args)
}
ConVar hndl = FindConVar(cvarname);
if (hndl == INVALID_HANDLE)
if (hndl == null)
{
ReplyToCommand(client, "[SM] %t", "Unable to find cvar", cvarname);
return Plugin_Handled;
@@ -336,7 +336,7 @@ public Action:Command_ResetCvar(client, args)
GetCmdArg(1, cvarname, sizeof(cvarname));
ConVar hndl = FindConVar(cvarname);
if (hndl == INVALID_HANDLE)
if (hndl == null)
{
ReplyToCommand(client, "[SM] %t", "Unable to find cvar", cvarname);
return Plugin_Handled;