Server kicks players
#1

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.
Reply
#2

Which gamemode is this?
Reply
#3

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.
Reply
#4

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.
Reply
#5

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.
Reply
#6

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 ?
Reply
#7

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
Reply
#8

Quote:
Originally Posted by Kyle
Посмотреть сообщение
Yes.

Use the profiler plugin and also use this:

https://sampforum.blast.hk/showthread.php?tid=495402
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
Reply
#9

Paste your OnPlayerConnect, OnPlayerSpawn, OnPlayerRequest(spawn/class).
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)