AMX not/doubly initialized
#1

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] =
{...};
Reply
#2

What compiler flags are you using?
Reply
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
What compiler flags are you using?
Irrelevant. It ran fine yesterday.
Reply
#4

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
Reply
#5

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)