HELP CRASHDETECT
#1

Код:
[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
Lines

18364 OnPlayerSpawn
Код:
TextDrawShowForPlayer(playerid, StatsDisplay[playerid]);
117 OPA. include
Код:
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
}
20222 OnPlayerDeath
Код:
	if (PlayerInfo[killerid][pTeam] == TEAM_LAW || PlayerInfo[killerid][pVigilante] == 1) //line 20222
		{
			if (PlayerInfo[playerid][pWantedLevel] >= 4)
			{

				PlayerInfo[playerid][pWantedLevel] = 2;
			}
		}
128 OPA Include
Код:
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
}
Reply
#2

Help!
Reply
#3

Are you checking for killerid being invalid under OnPlayerDeath?

Код:
[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
Reply
#4

Show the code of this too: AB_OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)