Crashdetect [ OnPlayerUpdate ]
#1

It only gets called when the playerid is = 0, soooooooo I have no idea...

DEBUG:
PHP код:
[23:13:01] [debugAMX 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] [debugRun time error 4"Array index out of bounds" 
OnPlayerUpdate
pawn Код:
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;
    }
EDIT: If it means anything I don't have crashdetect in an #include just in server.cfg
Reply
#2

bump?
Reply
#3

Show the whole callback
Reply
#4

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Show the whole callback
That's the whole callback
Reply
#5

Compile again with this https://github.com/Zeex/samp-plugin-...ith-debug-info and show
Reply
#6

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Here

Код:
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
Reply
#7

Not this :v this crash when he shows again with this debug info
Reply
#8

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Not this :v this crash when he shows again with this debug info
Ohhh lol

Код:
[01:41:15] [debug] #0 000e47d0 in ?? (playerid=0, ... <1073741822 arguments>) at Modules/Jobs/trashmaster.pwn:508
//
PlayerTextDrawColor(playerid, djubrad[playerid][Kontova[playerid]], -16776961);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)