Server Crashes people after a few minutes
#1

When someone logs in and play 5-10 mins then the server crash him auto. I don't know how to find the problem. Can someone help me please.

Thanks.
Reply
#2

Here a log:
Код:
----------
Loaded log file: "server_log.txt".
----------

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

[23:29:26] password = ""  (string)
[23:29:26] 
[23:29:26] Server Plugins
[23:29:26] --------------
[23:29:26]  Loading plugin: Whirlpool
[23:29:26]  
[23:29:26]  ==================
[23:29:26]  
[23:29:26]   Whirlpool loaded
[23:29:26]  
[23:29:26]  ==================
[23:29:26]  
[23:29:26]   Loaded.
[23:29:26]  Loading plugin: sscanf
[23:29:26] 

[23:29:26]  ===============================

[23:29:26]       sscanf plugin loaded.     

[23:29:26]    © 2009 Alex "******" Cole

[23:29:26]    0.3d-R2 500 Players "dnee"

[23:29:26]  ===============================

[23:29:26]   Loaded.
[23:29:26]  Loading plugin: streamer
[23:29:26] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[23:29:26]   Loaded.
[23:29:26]  Loaded 3 plugins.

[23:29:26] 
[23:29:26] Filterscripts
[23:29:26] ---------------
[23:29:26]   Loading filterscript 'map.amx'...
[23:29:26]   Loading filterscript 'map2.amx'...
[23:29:26]   Loading filterscript 'pm.amx'...
[23:29:26]   Loading filterscript 'ct.amx'...
[23:29:26]   Loading filterscript 'anim.amx'...
[23:29:26]   Loading filterscript 'lightcontrol.amx'...
[23:29:26]   Loading filterscript 'gl_mapicon.amx'...
[23:29:26]   Loading filterscript 'pcar.amx'...
[23:29:26]   Loading filterscript 'House.amx'...
[23:29:26]  
[23:29:26]  
[23:29:26]  
[23:29:26]  ======================================= 
[23:29:26]  |                                     | 
[23:29:26]  |        YSI version 3.09.0684        | 
[23:29:26]  |        By Alex "******" Cole        | 
[23:29:26]  |                                     | 
[23:29:26]  ======================================= 
[23:29:26]  
[23:29:26]  
[23:29:26]  
[23:29:26] 
Total House Interiors Loaded: 16. Duration: 5 ms

[23:29:27] 
Total Houses Loaded: 1084. Duration: 1029 ms

[23:29:27]   Loading filterscript 'admin.amx'...
[23:29:27]  
[23:29:27]  
[23:29:27]  
[23:29:27]  ======================================= 
[23:29:27]  |                                     | 
[23:29:27]  |        YSI version 3.09.0684        | 
[23:29:27]  |        By Alex "******" Cole        | 
[23:29:27]  |                                     | 
[23:29:27]  ======================================= 
[23:29:27]  
[23:29:27]  
[23:29:27]  
[23:29:27]   Loading filterscript 'titanic.amx'...
[23:29:27]   Loaded 11 filterscripts.

[23:29:27]  
[23:29:27]  
[23:29:27]  
[23:29:27]  ======================================= 
[23:29:27]  |                                     | 
[23:29:27]  |        YSI version 3.09.0684        | 
[23:29:27]  |        By Alex "******" Cole        | 
[23:29:27]  |                                     | 
[23:29:27]  ======================================= 
[23:29:27]  
[23:29:27] Number of vehicle models: 27
[23:29:27]  
[23:29:27]  ========================================== 
[23:29:27]  |                                        | 
[23:29:27]  |  A new version (v<html>
  ) of YSI is  | 
[23:29:27]  |            available from:             | 
[23:29:27]  |                                        | 
[23:29:27]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[23:29:27]  |                                        | 
[23:29:27]  ========================================== 
[23:29:27]  
[23:29:28]  
[23:29:28]  ========================================== 
[23:29:28]  |                                        | 
[23:29:28]  |  A new version (v<html>
  ) of YSI is  | 
[23:29:28]  |            available from:             | 
[23:29:28]  |                                        | 
[23:29:28]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[23:29:28]  |                                        | 
[23:29:28]  ========================================== 
[23:29:28]
Reply
#3

Do you have numerous of timers repeating or w/e? In example: a loop which is constant, and keeps creating timers?
Is OnPlayerUpdate returning values, and/or does it contain large amounts of scripts or never ending loops that could get tied up?
Is there a missing include or folder that's required?

It could really be anything...like some SAMP functions that are misused can cause crashing. Has it ever worked this script? There are some but a very little category of objects that can cause crashing.
Reply
#4

Quote:

Do you have numerous of timers repeating or w/e?

hm.. The payday timer. Auto.fix car timer, derby timer, speedometer and 1 timer for reset some of the objects in the derby maps, but only activate when u enter in the derby.

Quote:

Is OnPlayerUpdate returning values, and/or does it contain large amounts of scripts or never ending loops that could get tied up?

Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerSpeed(playerid) > 650)
         {
         if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                 {
                    Cheater(playerid);
				 }
}
        return 1;
}
//******************************************
stock Cheater(playerid)
{
    new string[128], tt[MAX_PLAYER_NAME];
	GetPlayerName(playerid, tt, sizeof(tt));
	format(string, sizeof(string), "%s Car Swing", tt);
	SendClientMessageToAll(RED, string);
	Kick(playerid);
}
Код:
public OnPlayerUpdate(playerid)
{
        new string[128];
        new plneim[32];
        GetPlayerName(playerid, plneim, sizeof(plneim));
        if(GetPlayerPing(playerid) >= MAX_PING)
        {
                format(string, sizeof (string), "%s High Ping", plneim);
                SendClientMessageToAll(RED, string);
            	Kick(playerid);
        }
        return 1;
}
I have 2 times OnPlayerUpdate in 2 different Filterscripts. 1 in my gamemode checks the ping and 1 in my admin system checks the speed.


Quote:

Is there a missing include or folder that's required?

I've checked all folders. Everything is ok with them.

Quote:

Has it ever worked this script?

It's working, but i dont know how long that problem started.
Reply
#5

What happens if you remove the ping detection? Perhaps something on connect/before spawn ect. is causing a higher ping -> then kicking?
Reply
#6

Quote:

What happens if you remove the ping detection?

I don't think it's from the ping detector, but i'll test.

Quote:

Perhaps something on connect/before spawn ect. is causing a higher ping -> then kicking?

If i put it under OnPlayerConnect always kicks me out.

From samp wiki
Quote:

Player's ping may be 65535 for a while after a player connects

Reply
#7

Try to use crashdetect plugin.
Reply
#8

How to use it? Isn't it for server crash?
Reply
#9

Yea, but crash problems are so difficult to detect so maybe this plugin can help.
https://sampforum.blast.hk/showthread.php?tid=262796
Reply
#10

Ok. Thanks I'll write later.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)