SA-MP Forums Archive
Debug - 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: Debug (/showthread.php?tid=619250)



Debug - Yaa - 15.10.2016

Hello

when server start i got this

Quote:

Run time error 3: "Stack/heap collision (insufficient stack size)"
Stack pointer (STK) is 0x2080A8, heap pointer (HEA) is 0x209F1C
AMX backtrace:
#0 00000000 in public IRC_OnGameModeInit ()
#1 native CallLocalFunction () from sap-server-beta.exe
#2 00000000 in public S@@_OnGameModeInit ()
#3 native CallLocalFunction () from sap-server-beta.exe
#4 00000000 in public S@@_OnGameModeInit ()
#5 native CallLocalFunction () from sap-server-beta.exe
#6 00000000 in public ScriptInit_OnGameModeInit ()
#7 native CallLocalFunction () from sap-server-beta.exe
#8 00000000 in public zcmd_OnGameModeInit ()
#9 native CallLocalFunction () from sap-server-beta.exe
#10 00000000 in public OnGameModeInit ()

and the gamemode co-loaded not fully loaded

anyway

the code is here

http://pastebin.com/ijYtfFAm


Re: Debug - Konstantinos - 15.10.2016

All those arrays with size of MAX_VEHICLES should be global (outside of any callback/function).


Re: Debug - Yaa - 15.10.2016

Nice Thanks