Server won't start anymore! - 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: Server won't start anymore! (
/showthread.php?tid=200077)
Server won't start anymore! -
Baboon - 17.12.2010
Hey,
I just added something new in my gamemode. When I compile I do not get any errors. But when I start the server it auto-closes. Here is the server log:
Quote:
SA-MP Dedicated Server
----------------------
v0.3b R2, ©2005-2010 SA-MP Team
[14:55:19]
[14:55:19] Server Plugins
[14:55:19] --------------
[14:55:19] Loading plugin: Whirlpool
[14:55:19]
[14:55:19] ==================
[14:55:19]
[14:55:19] Whirlpool loaded
[14:55:19]
[14:55:19] ==================
[14:55:19]
[14:55:19] Loaded.
[14:55:19] Loading plugin: streamer
[14:55:19]
*** Streamer Plugin v2.5.1 by Incognito loaded ***
[14:55:19] Loaded.
[14:55:19] Loading plugin: irc
[14:55:19]
*** IRC Plugin v1.3.6 by Incognito loaded ***
[14:55:19] Loaded.
[14:55:19] Loaded 3 plugins.
[14:55:19]
[14:55:19] Ban list
[14:55:19] --------
[14:55:19] Loaded: samp.ban
[14:55:19]
[14:55:19]
[14:55:19] Filter Scripts
[14:55:19] ---------------
[14:55:19] Loading filter script 'BamAdmin.amx'...
[14:55:19] BAdmin System has loaded!
[14:55:19] Loading filter script 'backweapon.amx'...
[14:55:19] Loading filter script 'irc.amx'...
[14:55:19] Loaded 3 filter scripts.
|
I have tested some other gamemodes and those work. I restarted my pc, but no result, I removed my added part and still no result.
here is the server.cfg:
Quote:
echo Executing Server Config...
lanmode 0
rcon_password 123456789
maxplayers 20
port 1995
hostname [BETA]COD-VIII / killstreaks! / low-life
gamemode0 CODVIII
filterscripts BamAdmin backweapon irc
announce 1
query 1
weburl www.cod-viii.co.nr/
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
plugins Whirlpool streamer irc
include streamer
|
What to do <.<,
help me please
Re: Server won't start anymore! -
Kwarde - 17.12.2010
It's probably the gamemode. Remove what you've made and try it again.
Or, give us the code of the (part of the) GM
Re: Server won't start anymore! -
Baboon - 17.12.2010
I did removed that part, and I don't want to release it, any suggestions?
Re: Server won't start anymore! -
Nero_3D - 17.12.2010
If other scripts work than its scriptbase (only to clarify that)
And than we know that main doesnt got executed because there is no text about the gamemode
Than it must be before the prints in main which mostly is nothing or in OnGameModeInit which gets executed before main
just add in each line of OnGameModeInit
than run the mode again and post the line after the last "Test"
Re: Server won't start anymore! -
Baboon - 17.12.2010
except the objects and vehicles? Nero? Do I have to rename "test" each line?
edit:
nvm, I saw the problem! In the timer I didn't had a space between ""...
Re: Server won't start anymore! -
Nero_3D - 17.12.2010
Quote:
Originally Posted by timothyinthehouse
nvm, I saw the problem! In the timer I didn't had a space between ""...
|
Nice ^^ but an empty timer parameter? strange
pawn Код:
SetTimer("funcname", 1000, true); //all parameter needed
SetTimerEx("funcname", 1000, true, ""); //Use the normal timer for that ^^"
Quote:
Originally Posted by timothyinthehouse
except the objects and vehicles? Nero? Do I have to rename "test" each line?
|
No its just an easy debug methode, you put between each line a print "Test"
pawn Код:
print("Test");
Hello();
print("Test");
SetTimer(...);
print("Test");
CallMe();
print("Test");
Now if start your server again and check the log
And you only find two "Test" than you know that SetTimer crashed the server, easy, isnt it