CrashDetect Plugin Errors Help - 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: CrashDetect Plugin Errors Help (
/showthread.php?tid=548393)
CrashDetect Plugin Errors Help -
dan40o - 29.11.2014
Код:
[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.
Re: CrashDetect Plugin Errors Help -
Wingman - 29.11.2014
Let me see your OnPlayerDeath line in free.amx and adsystem.amx
Re: CrashDetect Plugin Errors Help -
dan40o - 29.11.2014
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;
}