Crashdetecter detects a error on PlayerDeath
#1

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.
Код 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
Line 9902
Код HTML:
if(PlayerTemp[killerid][isevent])
whole script
Код 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;
		}
Reply


Messages In This Thread
Crashdetecter detects a error on PlayerDeath - by ThatFag - 10.01.2017, 18:01
Re: Crashdetecter detects a error on PlayerDeath - by jlalt - 10.01.2017, 18:06
Re: Crashdetecter detects a error on PlayerDeath - by justinnater - 10.01.2017, 18:06
Re: Crashdetecter detects a error on PlayerDeath - by jlalt - 10.01.2017, 18:08
Re: Crashdetecter detects a error on PlayerDeath - by ThatFag - 10.01.2017, 21:17

Forum Jump:


Users browsing this thread: 5 Guest(s)