AMX not/doubly 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: AMX not/doubly initialized (
/showthread.php?tid=495873)
AMX not/doubly initialized -
MP2 - 19.02.2014
When I try to start my server, I get this:
Quote:
[12:32:07] *** Streamer Plugin: Warning: Include file version (0x59) does not match plugin version (0x27002) (script might need to be recompiled with the latest include file)
[12:32:07] Script[gamemodes/MNS/main.amx]: Run time error 22: "AMX not initialized (or doubly initialized)"
|
I haven't changed anything in regards to the streamer, so that is an effect, not the cause. I updated it to the newest version just to be safe anyway.
I have only really been working on one script in my gamemode recently, which gets included in to the main .pwn file. Commenting out this inclusion didn't solve the problem, so I have no idea what's causing it.
Other game modes (also using the streamer) work fine. There are no errors/warnings on compile.
EDIT - FIXED:
It seems this was the problem:
pawn Код:
new Float:gGasStationCPCoords[19][][3] =
{...};
Changing it to this worked:
pawn Код:
new Float:gGasStationCPCoords[19][2][3] =
{...};
Re: AMX not/doubly initialized -
Misiur - 19.02.2014
What compiler flags are you using?
Re: AMX not/doubly initialized -
MP2 - 19.02.2014
Quote:
Originally Posted by Misiur
What compiler flags are you using?
|
Irrelevant. It ran fine yesterday.
Re: AMX not/doubly initialized -
RajatPawar - 19.02.2014
I checked in the PAWN implementor's guide, found the correct error code (22) and all that was given was -
Quote:
Run-time errors:
The function library that forms the abstract machine returns error codes. These 47 error codes encompass both errors for loading and initializing a binary file and run-time errors due to programmer errors (bounds-checking).
|
Oh yeah - it doesn't help, but it gives you the clue that the error was generated by some of your newly coded stuff rather than any external factors. Gives you a lot to debug
Re: AMX not/doubly initialized -
MP2 - 19.02.2014
Quote:
Originally Posted by Rajat_Pawar
I checked in the PAWN implementor's guide, found the correct error code (22) and all that was given was -
|
That doesn't help..