Somehow my server keeps restarting
#1

Somehow my server keeps restarting, when I try to connect, it restarts.
I can see on my samp-server.exe that it keeps restarting...

It says : Number of vehicle models: 1

And when I remove that vehicle from my script (AddStaticVehicle)

It keeps saying : Number of vehicle models: 1
While I removed that vehicle.

Please help.
Reply
#2

Post your server log.
Reply
#3

Quote:

[03:44:09] (null)
[03:44:09] ----------------------------------

[03:44:09] Number of vehicle models: 1
[03:44:21]
----------------------------------
[03:44:21] (null)
[03:44:21] ----------------------------------

[03:44:21] Number of vehicle models: 1
[03:44:33]
----------------------------------
[03:44:33] (null)
[03:44:33] ----------------------------------

[03:44:33] Number of vehicle models: 1
[03:44:45]
----------------------------------
[03:44:45] (null)
[03:44:45] ----------------------------------

[03:44:45] Number of vehicle models: 1
[03:44:57]
----------------------------------
[03:44:57] (null)
[03:44:57] ----------------------------------

[03:44:57] Number of vehicle models: 1
[03:45:09]
----------------------------------
[03:45:09] (null)
[03:45:09] ----------------------------------

[03:45:09] Number of vehicle models: 1
[03:45:21]
----------------------------------
[03:45:21] (null)
[03:45:21] ----------------------------------

[03:45:21] Number of vehicle models: 1
[03:45:33]
----------------------------------
[03:45:33] (null)
[03:45:33] ----------------------------------

[03:45:33] Number of vehicle models: 1
[03:45:45]
----------------------------------
[03:45:45] (null)
[03:45:45] ----------------------------------

[03:45:45] Number of vehicle models: 1
[03:45:57]
----------------------------------
[03:45:57] (null)
[03:45:57] ----------------------------------

[03:45:57] Number of vehicle models: 1
[03:46:09]
----------------------------------
[03:46:09] (null)
[03:46:09] ----------------------------------

[03:46:09] Number of vehicle models: 1
[03:46:21]
----------------------------------
[03:46:21] (null)
[03:46:21] ----------------------------------

[03:46:21] Number of vehicle models: 1
[03:46:33]
----------------------------------
[03:46:33] (null)
[03:46:33] ----------------------------------

[03:46:33] Number of vehicle models: 1
[03:46:45]
----------------------------------
[03:46:45] (null)
[03:46:45] ----------------------------------

[03:46:45] Number of vehicle models: 1
[03:46:57]
----------------------------------
[03:46:57] (null)
[03:46:57] ----------------------------------

[03:46:57] Number of vehicle models: 1
[03:47:09]
----------------------------------
[03:47:09] (null)
[03:47:09] ----------------------------------

[03:47:09] Number of vehicle models: 1
[03:47:21]
----------------------------------
[03:47:21] (null)
[03:47:21] ----------------------------------

[03:47:21] Number of vehicle models: 1

And so on... it keeps restarting and restarting
Reply
#4

What script are you using as chances are it's that, or what's been done to it.

When did it start happening?
Reply
#5

Just today,
I just have a few things in my script, more like cmds.
It's very confusing, because I don't know what it is.
Reply
#6

Does your script compile?
Reply
#7

Why did you trim the log? If we see more of it we can probably pinpoint it. The time intervals seem quick, so I'm guessing it's in OnGameModeInit. Show us?
Reply
#8

Is your script writing to a file or reading from one when logging in?
Maybe the files can't read/write a file because the containing folder doesn't exist.

I know for sure that trying to write to a file which should be in a folder, makes your server restart if the folder doesn't exist.

And your client keeps trying to connect, and re-runs OnPlayerConnect everytime.
Reply
#9

PHP Code:
public OnGameModeInit()
{

    
SetGameModeText("Practice Script");



    
// Classes
     
AddPlayerClass(23,1178.2076,-1324.1364,14.1087,270.7016,5,1,24,100,25,50);

    
// Objects
    
CreateObject(17321212.3303,-1332.0833,13.56890.00.096.0);

    
// Vehicles
    
AddStaticVehicle(560,1277.2316,-2026.8129,58.6722,89.2244,37,0); // Sultan
    
AddStaticVehicle(411,1211.1395,-1344.5742,13.2098,359.9913,116,1); // Infernus a g

    
return 1;

and it doesn't give any errors, it compiles good.
Quote:

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[14:05:16]
[14:05:16] Server Plugins
[14:05:16] --------------
[14:05:16] Loading plugin: sscanf
[14:05:16]

[14:05:16] ===============================

[14:05:16] sscanf plugin loaded.

[14:05:16] Version: 2.8.1

[14:05:16] © 2012 Alex "******" Cole

[14:05:16] ===============================

[14:05:16] Loaded.
[14:05:16] Loaded 1 plugins.

[14:05:16]
[14:05:16] Ban list
[14:05:16] --------
[14:05:16] Loaded: samp.ban
[14:05:16]
[14:05:16]
[14:05:16] Filterscripts
[14:05:16] ---------------
[14:05:16] Loading filterscript 'gl_actions.amx'...
[14:05:16] Unable to load filterscript 'gl_actions.amx'.
[14:05:16] Loading filterscript 'gl_realtime.amx'...
[14:05:16] Unable to load filterscript 'gl_realtime.amx'.
[14:05:16] Loading filterscript 'gl_property.amx'...
[14:05:16] Unable to load filterscript 'gl_property.amx'.
[14:05:16] Loading filterscript 'gl_mapicon.amx'...
[14:05:16] Unable to load filterscript 'gl_mapicon.amx'.
[14:05:16] Loading filterscript 'ls_mall.amx'...
[14:05:16] Unable to load filterscript 'ls_mall.amx'.
[14:05:16] Loading filterscript 'ls_elevator.amx'...
[14:05:16] Unable to load filterscript 'ls_elevator.amx'.
[14:05:16] Loading filterscript 'attachments.amx'...
[14:05:16] Unable to load filterscript 'attachments.amx'.
[14:05:16] Loading filterscript 'skinchanger.amx'...
[14:05:16] Unable to load filterscript 'skinchanger.amx'.
[14:05:16] Loading filterscript 'vspawner.amx'...
[14:05:16] Unable to load filterscript 'vspawner.amx'.
[14:05:16] Loaded 0 filterscripts.

Reply
#10

I just noticed my previous post is very hard to understand what I mean.

The pawno/script compiles good without any errors/warnings.
But as soon as I open the samp-server.exe the server keeps restarting and restarting (like 15seconds for every restart), I don't have any clue why this could happen, since my script doesn't give any warnings or errors.

The server log;
Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[15:12:32]
[15:12:32] Server Plugins
[15:12:32] --------------
[15:12:32] Loading plugin: sscanf
[15:12:32]

[15:12:32] ===============================

[15:12:32] sscanf plugin loaded.

[15:12:32] Version: 2.8.1

[15:12:32] © 2012 Alex "******" Cole

[15:12:32] ===============================

[15:12:32] Loaded.
[15:12:32] Loaded 1 plugins.

[15:12:32]
[15:12:32] Ban list
[15:12:32] --------
[15:12:32] Loaded: samp.ban
[15:12:32]
[15:12:32]
[15:12:32] Filterscripts
[15:12:32] ---------------
[15:12:32] Loading filterscript 'gl_actions.amx'...
[15:12:32] Unable to load filterscript 'gl_actions.amx'.
[15:12:32] Loading filterscript 'gl_realtime.amx'...
[15:12:32] Unable to load filterscript 'gl_realtime.amx'.
[15:12:32] Loading filterscript 'gl_property.amx'...
[15:12:32] Unable to load filterscript 'gl_property.amx'.
[15:12:32] Loading filterscript 'gl_mapicon.amx'...
[15:12:32] Unable to load filterscript 'gl_mapicon.amx'.
[15:12:32] Loading filterscript 'ls_mall.amx'...
[15:12:32] Unable to load filterscript 'ls_mall.amx'.
[15:12:32] Loading filterscript 'ls_elevator.amx'...
[15:12:32] Unable to load filterscript 'ls_elevator.amx'.
[15:12:32] Loading filterscript 'attachments.amx'...
[15:12:32] Unable to load filterscript 'attachments.amx'.
[15:12:32] Loading filterscript 'skinchanger.amx'...
[15:12:32] Unable to load filterscript 'skinchanger.amx'.
[15:12:32] Loading filterscript 'vspawner.amx'...
[15:12:32] Unable to load filterscript 'vspawner.amx'.
[15:12:32] Loaded 0 filterscripts.

[15:12:32]
----------------------------------
[15:12:32] (null)
[15:12:32] ----------------------------------

[15:12:32] Number of vehicle models: 1
[15:12:44]
----------------------------------
[15:12:44] (null)
[15:12:44] ----------------------------------

[15:12:44] Number of vehicle models: 1

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)