10.01.2017, 18:01
hello there, i was randomly checking my server logos and i found this error but i couldnt figure out whats wrong with it so im asking for your help.
Error.
Line 9902
whole script
Error.
Код HTML:
[13:43:14] [debug] Run time error 4: "Array index out of bounds" [13:43:14] [debug] Attempted to read/write array element at index 65535 in array of size 50 [13:43:14] [debug] AMX backtrace: [13:43:14] [debug] #0 0006a944 in public OnPlayerDeath (playerid=2, killerid=65535, reason=255) at ./assets/no.pwn:9902 [13:43:14] [death] Eazy_Compton died 255
Код HTML:
if(PlayerTemp[killerid][isevent])
Код HTML:
if(PlayerTemp[killerid][isevent]) { PlayerLoop(i) { if(!PlayerTemp[i][isevent]) continue; SendClientMSG(i, COLOR_YELLOW, "..: [EVENT]: %s has killed %s with a %s (Distance: %dm):..", RPName(killerid), RPName(playerid), aWeaponNames[reason], GetDistanceBetweenPlayers(playerid, killerid)); OnPlayerKillSpree(killerid); } if(PlayerTemp[killerid][isevent] == 5) { shipkills[killerid] += 1; } PlayerTemp[playerid][isevent] = 0; return 1; }