SA-MP Forums Archive
Run time error 22 - AMX Not initialized... - 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: Run time error 22 - AMX Not initialized... (/showthread.php?tid=346914)



Run time error 22 - AMX Not initialized... - CptK - 30.05.2012

Hi.
I've tried to run my new gamemode and it says Run time error 22: "AMX not initialized (or double initialized)".
Can I have some help please?
Thanks


Re: Run time error 22 - AMX Not initialized... - Kathleen - 30.05.2012

you got this in your gamemodes dir?

gamemodes/test.pwn
gamemodes/test.amx
So yes, try to re-compile

or control your config.cfg on gamemodename like gamemode0 test 1


Re: Run time error 22 - AMX Not initialized... - CptK - 30.05.2012

Yep, everything is fine.. With other GM's it works just well. But when I change to this gamemode it gives me this error.
I've also tried to recompile with Pawno, Pawnscite, Notepad++.. None of them gives me errors, but the samp-server.exe itself gives me the Run Time 22 error.
upd: Fixed.. I had a problem with "OnPlayerRequestSpawn"


Re: Run time error 22 - AMX Not initialized... - dannyk0ed - 30.05.2012

Has to be your script.