CrashDetect Plugin Errors Help
#1

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at negative index -1
[debug] AMX backtrace:
[debug] #0 00028dfc in public Spawn (0) from free.amx
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 65535 past array upper bound 499
[debug] AMX backtrace:
[debug] #0 0003d4ac in ?? (0, 65535, 255) from admin.amx
[debug] #1 0000c8d4 in public OnPlayerDeath (0, 65535, 255) from adsystem.amx
[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 65535 past array upper bound 499
[debug] AMX backtrace:
[debug] #0 00023cf0 in public OnPlayerDeath (0, 65535, 255) from free.amx
Tell if u need some code or somthing else from the FS.
Reply
#2

Let me see your OnPlayerDeath line in free.amx and adsystem.amx
Reply
#3

adsystem
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(PlayerInfo[playerid][pJailed] == 1)
	{
		SetPlayerPos(playerid, 2055.0920, 2432.3054, 171.6713);
		return 1;
	}

    if(IsBeingSpeced[playerid] == 1)
    {
        foreach(Player,i)
        {
            if(spectatorid[i] == playerid)
            {
                TogglePlayerSpectating(i, 0);
            }
        }
    }
    
	PlayerInfo[killerid][pKills]++;
	PlayerInfo[playerid][pDeaths]++;
	return 1;
}
free
Код:
public OnPlayerDeath(playerid, killerid)
{
		
		if(InDM[killerid] == 1)
		{
		GameTextForPlayer(killerid, "200$ + 1 score", 4000, 1);
		GivePlayerMoney(killerid, 200);
		new sscore = GetPlayerScore(killerid);
  		SetPlayerScore(killerid, sscore+1);
  		}
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)