Server kicks players -
Dayrion - 11.10.2017
Hello.
I occur a problem with a gamemode. The server seems to freeze and start to kick players who is trying to connect. I don't see any specific command which produce that (since it's not the same command at each crash)
I wanted to know what the problem can come from?
Код:
[23:23:47] Name (ID) use this command '/command'
[23:24:26] Kicking xx because they didn't logon to the game.
[23:24:49] Kicking xx because they didn't logon to the game.
[23:25:13] Kicking xx because they didn't logon to the game.
[23:25:34] Kicking xx because they didn't logon to the game.
[23:26:05] Kicking xx because they didn't logon to the game.
[23:26:21] Kicking xx because they didn't logon to the game.
Re: Server kicks players -
darkhunter332 - 11.10.2017
Which gamemode is this?
Re: Server kicks players -
whadez - 11.10.2017
The thing is, if you set the players name to any special characters, everybody will get kicked out. (I had this issue with the Hungarian characters when I was beginner -> бйőűъуь etc.) So try to look up on SetPlayerName() and see if there's any interesting stuff.
Re: Server kicks players -
Dayrion - 11.10.2017
Quote:
Originally Posted by whadez
The thing is, if you set the players name to any special characters, everybody will get kicked out. (I had this issue with the Hungarian characters when I was beginner -> бйőűъуь etc.) So try to look up on SetPlayerName() and see if there's any interesting stuff.
|
Nop. Players use normal name. I mean, their name are fine.
When the freeze happens, the server shows (on SAMP client) players like they are still connected on it.
Re: Server kicks players -
Kyle - 11.10.2017
This error is likely to be caused by an infinitive loop.
Check your loops so that includes your for, while and do loops.
If you can add safety measures, so count the iterations and cap them at a number you don't think should be surpassed.
Re: Server kicks players -
Dayrion - 11.10.2017
Quote:
Originally Posted by Kyle
This error is likely to be caused by an infinitive loop.
Check your loops so that includes your for, while and do loops.
If you can add safety measures, so count the iterations and cap them at a number you don't think should be surpassed.
|
I got the same idea but the problem came up when I updated MySQL (r5 -> r41-4). I should still check loops ?
Re: Server kicks players -
Kyle - 11.10.2017
Quote:
Originally Posted by Dayrion
I got the same idea but the problem came up when I updated MySQL (r5 -> r41-4). I should still check loops ?
|
Yes.
Use the profiler plugin and also use this:
https://sampforum.blast.hk/showthread.php?tid=495402
Re: Server kicks players -
Dayrion - 11.10.2017
Quote:
Originally Posted by Kyle
|
I'm not sure to run profiler plugin. I mean, the gamemode is clearly not optimized since he has been created like ages ago loll. I'll give a try anyway
What should I execpt of him? What is the most used in the gamemode?
For the tutorial you send, the server doesn't crash but freeze so I've nothing to do except restart the server
Re: Server kicks players -
Meller - 11.10.2017
Paste your OnPlayerConnect, OnPlayerSpawn, OnPlayerRequest(spawn/class).
Re: Server kicks players -
Kyle - 11.10.2017
Quote:
Originally Posted by Dayrion
I'm not sure to run profiler plugin. I mean, the gamemode is clearly not optimized since he has been created like ages ago loll. I'll give a try anyway
What should I execpt of him? What is the most used in the gamemode?
For the tutorial you send, the server doesn't crash but freeze so I've nothing to do except restart the server
|
Once it hangs / freezes, close the server / kill the pid on linux, get the log and post it here, we can analyse it then and see what was last called etc.