Code:
[debug] #1 0014f264 in public AB_OnPlayerSpawn (playerid=5) at C:\Users\user\Desktop\SERVER\gamemodes\SV1.pwn:18364
[debug] #2 000527bc in public OnPlayerSpawn (playerid=5) at C:\Users\user\Desktop\SERVER\pawno\include\OPA.inc:117
[debug] Run time error 4: "Array index out of bounds"
[debug] AMX backtrace:
[debug] #0 00162cb8 in public AB_OnPlayerDeath (playerid=7, killerid=65535, reason=255) at C:\Users\user\Desktop\SERVER\gamemodes\SV1.pwn:20222
[debug] #1 000528bc in public OnPlayerDeath (playerid=7, killerid=65535, reason=255) at C:\Users\user\Desktop\SERVER\pawno\include\OPA.inc:128
18364 OnPlayerSpawn
Code:
TextDrawShowForPlayer(playerid, StatsDisplay[playerid]);
Code:
public OnPlayerSpawn(playerid)
{
s_AirbreakDetectImmunity[playerid] = gettime() + 3;
GetPlayerPos(playerid, s_AirbreakLastCoords[playerid][0], s_AirbreakLastCoords[playerid][1], s_AirbreakLastCoords[playerid][2]);
#if defined AB_OnPlayerSpawn
return AB_OnPlayerSpawn(playerid); //line 117
#else
return 1;
#endif
}
Code:
if (PlayerInfo[killerid][pTeam] == TEAM_LAW || PlayerInfo[killerid][pVigilante] == 1) //line 20222
{
if (PlayerInfo[playerid][pWantedLevel] >= 4)
{
PlayerInfo[playerid][pWantedLevel] = 2;
}
}
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
s_AirbreakDetectImmunity[playerid] = gettime() + 3;
#if defined AB_OnPlayerDeath
return AB_OnPlayerDeath(playerid, killerid, reason); //line 128
#else
return 1;
#endif
}