05.06.2013, 18:14
[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
[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; } |