Hi guys, i have problem with a piece of code... Compiler doesn't give me any errors, but server console give me this result
Console:
PHP Code:
L 07/12/2015 - 10:28:05: [SM] Displaying call stack trace for plugin "jailbreak.smx":
L 07/12/2015 - 10:28:05: [SM] [0] Line 673, \addons\sourcemod\scripting\jailbreak.sp::ResetHP()
L 07/12/2015 - 10:28:05: [SM] [1] Line 591, \addons\sourcemod\scripting\jailbreak.sp::mod_prestrelka()
L 07/12/2015 - 10:28:05: [SM] [2] Line 581, \addons\sourcemod\scripting\jailbreak.sp::SimonMS()
Code:
PHP Code:
public SimonMS(Handle:menu, MenuAction:action, client, param2)
{
if (action == MenuAction_Select)
{
new String:info[32];
GetMenuItem(menu, param2, info, sizeof(info));
if(strcmp(info,"choose1") == 0)
{
mod_prestrelka();
}
}
}
public void mod_prestrelka()
{
AktMod = 1; //mod prestrelka 1
OnOpenJails();
ResetHP();
for (new i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i) || IsPlayerAlive(i))
{
OpenGunsMenu(i);
ModHintText(i, "Prestrelka");
PlaySoundAll(2);
}
}
}
stock void ResetHP()
{
for(new i = 1; i <= MaxClients; i++)
{
if((GetClientTeam(i) == CS_TEAM_T || IsPlayerVIP(i)) && IsClientInGame(i))
{
SetEntityHealth(i, 100);
}
}
}
When I call
mod_prestrelka, ResetHP, OpenGunsMenu, ModHintText, PlaySoundAll doesn't work.
What I doing wrong? Thanks.