SA-MP Forums Archive
Some Weird probelm. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Some Weird probelm. (/showthread.php?tid=642573)



Some Weird probelm. - Eoussama - 02.10.2017

Hello, all,

So I had something very unusually weird happen to some server I'm maintaining, It occurred 3 days ago, and I kept observing it since,

The player list on the client showed 4 static players one of them was called 'You_tube' (that's the only one I remember), 3 days had passed and those 4 players stayed marked on the player list, and when people try to join the server, it said that the server is full,

The problem, however, was simply solved by restarting the server(Not the gamemode), This kept me wondering what could be causing this.


Re: Some Weird probelm. - NaS - 04.10.2017

You should've checked the CPU Load at that time, this sounds like an infinite loop in a PAWN Script (could also be caused by one or more Array index out of bounds errors (which can result in undefined behaviour - like an infinite loop)).

If you did see the Server Load, if it was at maximum load it supports the theory that it was an infinite loop.


Re: Some Weird probelm. - TommyB - 05.10.2017

Quote:
Originally Posted by NaS
View Post
You should've checked the CPU Load at that time, this sounds like an infinite loop in a PAWN Script (could also be caused by one or more Array index out of bounds errors (which can result in undefined behaviour - like an infinite loop)).

If you did see the Server Load, if it was at maximum load it supports the theory that it was an infinite loop.
An out of bounds error would not cause something like this. I don't believe an infinite loop would give the server is full message while trying to connect either. What usually happens is a player joins the server and ends up stuck at the connecting screen for a specific amount of time. Eventually, the SA-MP server kicks the player.

Eoussama, open your server.cfg file and see if you have connection cookies off. The specific option you're looking for is conncookies. Ensure this is set to 1. Furthermore, you should check your server_log.txt to see if your server is experiencing a heap of multiple connections. Having connection cookies off allows malicious people to spam a SA-MP server with fake connections which temporarily occupy player slots, which is what I imagine is happening to your server.