SA-MP Forums Archive
[SOLVED] OnGameModeInit is not called - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] OnGameModeInit is not called (/showthread.php?tid=146652)



[SOLVED] OnGameModeInit is not called - LTomi - 08.05.2010

Hi,

I've been adding a lot of functions to my gamemode and now I decided to test it. I started the server application, but for some reason, the OnGameModeInit part is not called, it stops at the main() part. What can cause this problem? The pawno doesn't find any error.
I changed a lot in my script since the last test, so I don't have an idea about what causes this bug. Please help me, it is important!

Edit: I found the error, I had to reorganize my OnGameModeInit a bit.