Add missing return values in plugins
This commit is contained in:
@@ -90,6 +90,8 @@ public int MenuHandler_ExecCFG(Menu menu, MenuAction action, int param1, int par
|
||||
Panel panel = view_as<Panel>(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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -62,6 +62,8 @@ public int MenuHandler_ChangeMap(Menu menu, MenuAction action, int param1, int p
|
||||
Panel panel = view_as<Panel>(param2);
|
||||
panel.SetTitle(title);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void AdminMenu_Map(TopMenu topmenu,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user