fixed a compatibility bug in AddTargetsToMenu()
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401638
This commit is contained in:
parent
8172560f39
commit
3c460aa48a
@ -171,7 +171,14 @@ public __GetAdminTopMenu(Handle:plugin, numParams)
|
||||
|
||||
public __AddTargetsToMenu(Handle:plugin, numParams)
|
||||
{
|
||||
return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), GetNativeCell(4));
|
||||
new bool:alive_only = false;
|
||||
|
||||
if (numParams >= 4)
|
||||
{
|
||||
alive_only = GetNativeCell(4);
|
||||
}
|
||||
|
||||
return UTIL_AddTargetsToMenu(GetNativeCell(1), GetNativeCell(2), GetNativeCell(3), alive_only);
|
||||
}
|
||||
|
||||
public Action:Command_DisplayMenu(client, args)
|
||||
|
Loading…
Reference in New Issue
Block a user