SA-MP Forums Archive
[Help] How come everytime... - 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: [Help] How come everytime... (/showthread.php?tid=176248)



[Help] How come everytime... - RASTAFARIAN - 12.09.2010

As you can tell. I'm a noob when it comes to scripting. I'm asking how come after I compile my game mode (Comples Great!) Then I click on SA-MP Servers, it comes for a quick second and leaves. Sometimes it does it sometimes it doesn't. I only have one copy of SA-Mp Server if your wondering


Re: [Help] How come everytime... - Mauzen - 12.09.2010

Check your server.log if there is any output before the server closes.
If not, you may have an error in your game, that isnt recognized by the compiler, like an invalid array index.


Re: [Help] How come everytime... - RASTAFARIAN - 12.09.2010

UGh, Lol. When I checked the Server Log it said I didn't have the gamemode 0 line that was my problem, THANKS!

EDIT: It still phuced up it says the folllowing on my Server Log

[02:39:17] I couldn't load any gamemode scripts. Please verify your server.cfg
[02:39:17] It needs a gamemode0 line at the very least.
But I have the Game MODE LINE!

echo Executing Server Config...
lanmode 0
rcon_password MyRcon
maxplayers 32
port 7777
hostname MyServer
gamemode0 test 1
filterscripts adminspec vactions
announce 0
query 1
weburl www.sa-mp.com
anticheat 0


Re: [Help] How come everytime... - legodude - 12.09.2010

does the gamemode exist in your gamemode's folder?


Re: [Help] How come everytime... - RASTAFARIAN - 12.09.2010

No, the game modes are in my Pawno Folder for some reason, why? I tried moving it, doesn't work


Re: [Help] How come everytime... - Mike Garber - 12.09.2010

Quote:
Originally Posted by RASTAFARIAN
Посмотреть сообщение
No, the game modes are in my Pawno Folder for some reason, why? I tried moving it, doesn't work
When It compiles, the .amx file goes into the same folder as your .pwn file.
Do not copy the .pwn file into /gamemodes, the .AMX file should be in /gamemodes folder.