SA-MP Forums Archive
Amx Backtrace and Runtime error 5 - 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: Amx Backtrace and Runtime error 5 (/showthread.php?tid=633419)



Amx Backtrace and Runtime error 5 - iTzMatheus - 30.04.2017

Hi everyone, I need help to understand this error from my gamemode. I don't know what is it and I want to fix too.

Код:
e CallLocalFunction () from samp03svr
[00:40:15] [debug] #4 00014060 in public OnPlayerCommandText (0, 52027940) from gm.amx
[00:40:20] [debug] Run time error 5: "Invalid memory access"
[00:40:20] [debug] AMX backtrace:
[00:40:20] [debug] #0 00198c98 in ?? (1, 75) from gm.amx
[00:40:20] [debug] #1 002ec054 in ?? (1, 1) from gm.amx
[00:40:20] [debug] #2 0029981c in public cmd_v (1, 52027976) from gm.amx
[00:40:20] [debug] #3 native CallLocalFunction () from samp03svr
[00:40:20] [debug] #4 00014060 in public OnPlayerCommandText (1, 52027940) from gm.amx
[00:40:29] [debug] Run time error 5: "Invalid memory access"
[00:40:29] [debug] AMX backtrace:
[00:40:29] [debug] #0 00198c98 in ?? (1, 75) from gm.amx
[00:40:29] [debug] #1 002ec054 in ?? (1, 1) from gm.amx
[00:40:29] [debug] #2 0029981c in public cmd_v (1, 52027976) from gm.amx
[00:40:29] [debug] #3 native CallLocalFunction () from samp03svr
[00:40:29] [debug] #4 00014060 in public OnPlayerCommandText (1, 52027940) from gm.amx
[00:40:36] [debug] Run time error 5: "Invalid memory access"
[00:40:36] [debug] AMX backtrace:
[00:40:36] [debug] #0 00198c98 in ?? (1, 75) from gm.amx
[00:40:36] [debug] #1 002ec054 in ?? (1, 1) from gm.amx
[00:40:36] [debug] #2 0029981c in public cmd_v (1, 52027976) from gm.amx
[00:40:36] [debug] #3 native CallLocalFunction () from samp03svr
[00:40:36] [debug] #4 00014060 in public OnPlayerCommandText (1, 52027940) from gm.amx
[00:40:41] [debug] Run time error 5: "Invalid memory access"
[00:40:41] [debug] AMX backtrace:
[00:40:41] [debug] #0 00198c98 in ?? (0, 75) from gm.amx
[00:40:41] [debug] #1 002ec054 in ?? (0, 0) from gm.amx
[00:40:41] [debug] #2 0029981c in public cmd_v (0, 52027976) from gm.amx
[00:40:41] [debug] #3 native CallLocalFunction () from samp03svr
[00:40:41] [debug] #4 00014060 in public OnPlayerCommandText (0, 52027940) from gm.amx
[01:02:25] [part] Cornelious_Mayhew has left the server (0:1)
[01:02:41] [part] Jayden_McDavis has left the server (1:1)
[01:07:11] [connection] 179.178.162.51:60667 requests connection cookie.
[01:07:12] [connection] incoming connection: 179.178.162.51:60667 id: 0
[01:07:13] [join] Halt has joined the server (0:179.178.162.51)
[01:07:24] [nick] Halt nick changed to Cornelious_Mayhew
[01:24:38] [debug] Run time error 5: "Invalid memory access"
[01:24:38] [debug] AMX backtrace:
[01:24:38] [debug] #0 00198c98 in ?? (0, 75) from gm.amx
[01:24:38] [debug] #1 002ec054 in ?? (0, 0) from gm.amx
[01:24:38] [debug] #2 0029981c in public cmd_v (0, 52027976) from gm.amx
[01:24:38] [debug] #3 native CallLocalFunction () from samp03svr
[01:24:38] [debug] #4 00014060 in public OnPlayerCommandText (0, 52027940) from gm.amx
[01:27:14] [debug] Run time error 5: "Invalid memory access"
[01:27:14] [debug] AMX backtrace:
[01:27:14] [debug] #0 00198c98 in ?? (0, 75) from gm.amx
[01:27:14] [debug] #1 001e9944 in public salario (0) from gm.amx
[01:27:14] [debug] #2 001e91e4 in public MinuteCheck () from gm.amx
[01:55:37] [part] Cornelious_Mayhew has left the server (0:1)
My command processor is ZCMD, if you need another code from my gamemode ask me please. :3


Re: Amx Backtrace and Runtime error 5 - StrikerZ - 30.04.2017

Can you compile your script with -d3 ?
Go to pawno folder>>make a new file named as "pawn.cfg" and open it, type "-d3" without quotes and save it and then compile ur script.


Re: Amx Backtrace and Runtime error 5 - iTzMatheus - 30.04.2017

I compile my script with -d3 in Pawn.cfg. I received this message from compiler.

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          31500 bytes
Code size:          5243280 bytes
Data size:         52027216 bytes
Stack/heap size:     262144 bytes; estimated max. usage: unknown, due to recursion
Total requirements:57564140 bytes



Re: Amx Backtrace and Runtime error 5 - AbyssMorgan - 30.04.2017

show CMD:v


Re: Amx Backtrace and Runtime error 5 - iTzMatheus - 30.04.2017

These erros appeared when a staff member was connected and I'm question him about that. I have big list of error related with various functions. The erros is about: CMD:V, OnPlayerCommandText, PlayerCheck, MinuteCheck and FuelUpdate. I think is not necessary the cmd:v yet.


Re: Amx Backtrace and Runtime error 5 - StrikerZ - 30.04.2017

If you've compiled with -d3, then again run the script, get the errors and post here. It'll show the line which is having the error.


Re: Amx Backtrace and Runtime error 5 - iTzMatheus - 30.04.2017

What is the difference from the codes of pawn.cfg? "-d0 -r" to "-d3"

I'll upload the script to the host and test. If I receive the errors again I'll return here. Thanks for help.


Re: Amx Backtrace and Runtime error 5 - Mohaaaaaaaaaaa - 01.05.2017

D3 will show where the error is aka the line of error run the script again and show us the line


Re: Amx Backtrace and Runtime error 5 - StrikerZ - 01.05.2017

Any news?