SA-MP Forums Archive
Pawn Decompiler for debugging this error? - 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: Pawn Decompiler for debugging this error? (/showthread.php?tid=498309)



Pawn Decompiler for debugging this error? - Grimrandomer - 02.03.2014

I have an error that is causing the server to crash:

Код:
[02/03/2014 20:35:46] [debug] AMX backtrace:
[02/03/2014 20:35:46] [debug] #0 native HideMenuForPlayer () [080df800] from samp03svr
[02/03/2014 20:35:46] [debug] #1 00005ce4 in ?? () from grimrandomerCNR.amx
[02/03/2014 20:35:46] [debug] #2 00030b54 in ?? () from grimrandomerCNR.amx
[02/03/2014 20:35:46] [debug] #3 00030dec in ?? () from grimrandomerCNR.amx
[02/03/2014 20:35:46] [debug] #4 00098f4c in ?? () from grimrandomerCNR.amx
[02/03/2014 20:35:46] [debug] #5 000058ac in public OnPlayerSelectedMenuRow () from grimrandomerCNR.amx
but as its not showing any function names I have no clue how to find the error.


Does anyone have an amx file browser or something similar so I can check my AMX at these addresses?


Thanks


Re: Pawn Decompiler for debugging this error? - Misiur - 02.03.2014

Do you compile with -d3 flag? OnPlayerSelectedMenuRow is a good start for search too


Re: Pawn Decompiler for debugging this error? - ikkentim - 02.03.2014

Hi,

Are you sure you have the right menuid and that the playerid is connected and that the menuid is shown for the given player?

You can convert a menu to an int using _:menuid for debugging purposes.


Re: Pawn Decompiler for debugging this error? - Grimrandomer - 02.03.2014

Turned out to be a conflict with ******'s fixes.inc so I have no clue why it was crashing when that was included.


Re: Pawn Decompiler for debugging this error? - MP2 - 03.03.2014

Did you compile with -d3? If so, show us the updated errors, and the lines which they originate from.


Re: Pawn Decompiler for debugging this error? - Konstantinos - 03.03.2014

HideMenuForPlayer can crash the server if you pass an invalid menu ID. You can check if the menuid is not 255 and call HideMenuForPlayer to prevent the crash.