All players afk
#1

Hey Everyone.
First of all sorry if my english is bad
I got a big problem in my server and I dont know why this problem happening.
The problem is that I SUDDENLY see all the players in my server in afk and they are also see that all the players in the server is afk but all of as are not in afk.
We can do a commands and we can writing in the chat but we see all the players in the server are afk and i didnt see them moved.
I red that it can happend if i putting return 0 in the public OnPlayerUpdate but i didnt put return 0 in this public.
I'm helpless about this issue...
Any way here is the things in my server in the public OnPlayerCommandText
http://pastebin.com/Sa0dNFma
HUGE Tnx for who will help me
Reply
#2

You gotta check recently done work.... I once had to work 3 hours just to remove a single line to fix my server..
Reply
#3

Quote:
Originally Posted by iLearner
Посмотреть сообщение
You gotta check recently done work.... I once had to work 3 hours just to remove a single line to fix my server..
But i dont know when the problem started because this problem can show up after few seconds or after few minutes or after few houers...
Do you know why this problem happend?
Reply
#4

Seems like a command? Or timer? I've got a debug mode in my server where I monitor each & every Cmd typed by users, and check which and if was a command responsible for it.

You have to test...
Reply
#5

happens if you return 0 for all updates in OnPlayerUpdate

happens if your server stops responding, infinite loop?
Reply
#6

I'm certain that OnPlayerUpdate is called approx 30 times per second or every 30 or so milliseconds(I could be wrong), so maybe the functions or code you have within OnPlayerUpdate are simply too lengthy and strenuous to have enough time to be processed before the next call is made.. which is creating congestion that gets worse over time.

Or maybe one of the functions called from within OnPlayerUpdate (that maybe players use?) could contain an infinite loop which would do much the same.

Just some ideas and goodluck!
Reply
#7

Quote:
Originally Posted by Yashas
Посмотреть сообщение
happens if your server stops responding, infinite loop?
If PAWN thread were caught in an infinite loop, then commands and chat callbacks shouldn't execute anymore.


Use crashdetect and check if there is any runtime error in OPU callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)