Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

HELP CRASHDETECT

$
0
0
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

Lines

18364 OnPlayerSpawn
Code:

TextDrawShowForPlayer(playerid, StatsDisplay[playerid]);
117 OPA. include
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
}

20222 OnPlayerDeath
Code:

        if (PlayerInfo[killerid][pTeam] == TEAM_LAW || PlayerInfo[killerid][pVigilante] == 1) //line 20222
                {
                        if (PlayerInfo[playerid][pWantedLevel] >= 4)
                        {

                                PlayerInfo[playerid][pWantedLevel] = 2;
                        }
                }

128 OPA Include
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
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>