SA-MP Forums Archive
error debug - help pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error debug - help pls (/showthread.php?tid=442066)



error debug - help pls - HappY_eXp - 05.06.2013

[21:13:29] [debug] Run time error 4: "Array index out of bounds"
[21:13:29] [debug] Accessing element at index 65535 past array upper bound 250
[21:13:29] [debug] AMX backtrace:
[21:13:29] [debug] #0 00028574 in public OnPlayerDeath () from redzk.amx
[21:13:29] [kill] HappY killed Divine Fire Extinguisher

Quote:

if(killerid != INVALID_PLAYER_ID)
{
switch( time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ] )
{
case 0 .. 3:
{
g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] ++;
if( g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] >= 3 )
{
new sendersm[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendersm, sizeof(sendersm));
format(stringfk, sizeof(stringfk), "Info: %s(%d) a fost dat afara, motiv: Fake Kill.", sendersm, playerid);
SendClientMessageToAll(COLOR_LIGHTRED, stringfk);
Kick(playerid);
return 1;
}
}
default: g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] = 0;
}
g_cleoData[ playerid ] [ E_FK_LASTDEATH ] = time;
}




Re: error debug - help pls - HappY_eXp - 06.06.2013

someone help me