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



Startup Error - Sascha - 09.11.2011

Hi guys,
I'm having a little problem...
I just started my server.exe and it returned
Код:
Script[gamemodes/name.amx]: Run time error 22: "AMX not initialized (or doubly initialized)"
in the server console..
All I changed was just adding a new array variable and using at some places in the script.. The script should be alright as it doesn't give me an error while compiling...
I had a similar problem once before in the same gamemode when adding a new array (3 dimensional)..
Any idea what could cause this?


Re: Startup Error - Kostas' - 09.11.2011

In the server.cfg file is your gamemode line like this
Код:
gamemode0 Name 1
If else, make sure you didn't miss a letter or mistyped it or in Capitals


Re: Startup Error - Sascha - 09.11.2011

my server.cfg is alright.. I didn't re-name the gamemode and neither changed anything in the server.cfg.. Even after checking, it's correct^^


Re: Startup Error - Kostas' - 09.11.2011

Just a question.
Do you have the .amx at your gamemode folder


Re: Startup Error - Sascha - 09.11.2011

@kostas: ofc.. if I hadn't the console would start and close straight away... In my case it stays open, and prints the error
@Joey: doesn't work

Edit: Update: even after having removed again all the stuff from the code, it still doesn't work..


Re: Startup Error - Sascha - 10.11.2011

hm... I haven't used "#emit" at all...
I'll try to use an old backup and re-change all the stuff and try to find the trouble-causing part I guess...
(I'll inform you if I found it)

oh yea and my arrays are 2d with third dimension as enum


Re: Startup Error - Sascha - 10.11.2011

hm... it happens whenever I use this 2 / 3 dimensional array..
pawn Код:
new MyMission[1][][MissionStyle]



Re: Startup Error - Sascha - 10.11.2011

another update (very sorry for the third post by myself in a row, although I guess that's more useful atm than editing it, as I suppose noone would notice it then)

when I remove the 1 in the first dimension (so from [1][][MissionStyle] to [][][MissionStyle]) it works...