SA-MP Forums Archive
Server disconnects all players - 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: Server disconnects all players (/showthread.php?tid=634278)



Server disconnects all players - MRM - 16.05.2017

Hi

Having a strange server problem here. The server randomly disconnects all players, including npcs, and players see a message "Lost connection to the server. Reconnecting.." "the server is restarting..."

Also should mention when the connection goes back to normal and players try to rejoin.

PHP код:
[partTeylor.62 has left the server (16:0)
[
partAss.Gamer has left the server (20:0)
[
partDocAlr has left the server (11:0)
[
part] [SaS].Toy has left the server (13:0)
[
partDr_Ners has left the server (14:0)
[
partPocke has left the server (15:0)
[
partTonYY has left the server (18:0)
[
partFuKKer has left the server (19:0



Re: Server disconnects all players - xLucy - 16.05.2017

Some horrible code? I used to get this error as a scripting newbie.


Re: Server disconnects all players - MRM - 16.05.2017

Quote:
Originally Posted by xLucy
Посмотреть сообщение
Some horrible code? I used to get this error as a scripting newbie.
I don't think.
Can you give example wrong code that is causing this problem?


Re: Server disconnects all players - JaKe Elite - 16.05.2017

Do server_log.txt shows up anything else besides player crashing? - You should also run CrashDetect that'd be useful in the future checking if the server has any internal problems (which isn't detectable or noticeable on compilers)


Re: Server disconnects all players - ShihabSoft - 16.05.2017

Post your logs lol,

If nothing wrong with the logs, I'd doubt it's something problem on the host's internet connection.


Re: Server disconnects all players - iLearner - 16.05.2017

Crashdetect with flag -d3.


Re: Server disconnects all players - raydx - 16.05.2017

DDos.


Re: Server disconnects all players - MRM - 16.05.2017

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
Do server_log.txt shows up anything else besides player crashing? - You should also run CrashDetect that'd be useful in the future checking if the server has any internal problems (which isn't detectable or noticeable on compilers)
There is nothing in the server_log.txt
I use CrashDetect but i don't get any debug message.

Quote:
Originally Posted by ShihabSoft
Посмотреть сообщение
Post your logs lol,

If nothing wrong with the logs, I'd doubt it's something problem on the host's internet connection.
I get internet connection log but there wasn't any timeout.

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Crashdetect with flag -d3.
I use CrashDetect but i don't get any debug message.

Quote:
Originally Posted by raydx
Посмотреть сообщение
DDos.
I do not think it is.


Re: Server disconnects all players - GTLS - 16.05.2017

May be you have too many timers. RAM problem might be causing that. You need to improve your code to reduce RAM usage. search Forums for tutorials on that.