Pawn Decompiler for debugging this error?
#1

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
Reply
#2

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

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.
Reply
#4

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)