HELP CRASHDETECT - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP CRASHDETECT (
/showthread.php?tid=632437)
HELP CRASHDETECT -
Sarti - 14.04.2017
Код:
[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
}
Respuesta: HELP CRASHDETECT -
Sarti - 15.04.2017
Help!
Re: HELP CRASHDETECT -
Sew_Sumi - 15.04.2017
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
Re: HELP CRASHDETECT -
AndreiWow - 15.04.2017
Show the code of this too: AB_OnPlayerSpawn