[23:13:01] [debug] AMX backtrace:
[23:13:01] [debug] #0 000b6464 in ?? (0, 1, 0, 0, 4, 0, 0, 0, 0, 0, ... <1073741813 arguments>) from UGRPG.amx
[23:13:01] [debug] #1 0001905c in public OnPlayerUpdate (0) from UGRPG.amx
[23:13:01] [debug] Run time error 4: "Array index out of bounds"
if(AfkCount[playerid] > 0)
{
afktime[playerid] = 0;
AfkCount[playerid] = 0;
// DEFINITON: new AfkCount[MAX_PLAYERS];
// DEFINTION: new afktime[MAX_PLAYERS];
}
if(noclipdata[playerid][cameramode] == CAMERA_MODE_FLY)
{
new keys,ud,lr;
GetPlayerKeys(playerid,keys,ud,lr);
if(noclipdata[playerid][mode] && (GetTickCount() - noclipdata[playerid][lastmove] > 100))
{
MoveCamera(playerid);
}
if(noclipdata[playerid][udold] != ud || noclipdata[playerid][lrold] != lr)
{
if((noclipdata[playerid][udold] != 0 || noclipdata[playerid][lrold] != 0) && ud == 0 && lr == 0)
{
StopPlayerObject(playerid, noclipdata[playerid][flyobject]);
noclipdata[playerid][mode] = 0;
noclipdata[playerid][accelmul] = 0.0;
}
else
{
noclipdata[playerid][mode] = GetMoveDirectionFromKeys(ud, lr);
MoveCamera(playerid);
}
}
noclipdata[playerid][udold] = ud; noclipdata[playerid][lrold] = lr;
return false;
}
Compile again with this https://github.com/Zeex/samp-plugin-...ith-debug-info and show
|
Pawn compiler 3.10.8 Copyright © 1997-2006, ITB CompuPhase Header size: 45592 bytes Code size: 10806432 bytes Data size: 28080496 bytes Stack/heap size: 17039360 bytes; estimated max. usage=5077 cells (20308 bytes) Total requirements:55971880 bytes
[01:41:15] [debug] #0 000e47d0 in ?? (playerid=0, ... <1073741822 arguments>) at Modules/Jobs/trashmaster.pwn:508 // PlayerTextDrawColor(playerid, djubrad[playerid][Kontova[playerid]], -16776961);