Hi, I have this error that appears in the log
Code:
L 06/22/2010 - 19:49:33: [SM] Plugin encountered error 15: Array index is out of bounds
L 06/22/2010 - 19:49:33: [SM] Displaying call stack trace for plugin "l4d_Infected_Self_Detonate.smx":
L 06/22/2010 - 19:49:33: [SM] [0] Line 64, /home/groups/sourcemod/upload_tmp/phpw9p4bS.sp::OnPlayerRunCmd()
This error just spawn the error log
PS: I have add the USE bouton on code :
Code:
else if (GetConVarInt(g_hConVar_DetonateButton) == 4)
{
if (!(buttons & IN_USE)) return Plugin_Continue;
// Self detonation
SetEntityHealth(client, 1);
IgniteEntity(client, 2.0);
// Message enabled?
if (GetConVarBool(g_hConVar_DisplayDetonationOn)) PrintToChatAll("\x03%N Self-detonated !", client);
}
__________________