Kicking player because they logon.
#7

Quote:
Originally Posted by BrianS123
Посмотреть сообщение
Maybe there is a timer, like if the player didn't login in 60seconds he'll be kicked, maybe you'll find something like that
Stop guessing based on what I have said... You're misleading the point I was making. The kick itself is from the server package, nothing to do with the script at all.




The point is about logic checks, and how you're checking certain things.

E.g. when you check in some function for stupid things, when you should be checking the easier options first. Rather than checking a vehicle is a valid model, before checking if the player is in a vehicle in the first instance.

Checking a player for a certain state, before checking the easier, more direct options.


If you have a timer, that has these kind of checks, but in a weird order, it'll cause the server to have issues with that function over time.

In particular the last few times I have seen this problem, it seems to be that they were doing big things with OnPlayerKeyStateChange.

Another area this comes up at is (As you said before) OnPlayerUpdate, OnTrailerUpdate, OnVehicleDamageStatusUpdate, and all those callbacks that can fire at high rates.



So anyway, I think it can be some logic failure in your script, that's causing it to hang and have problems.

Lemme know how that timed test goes.
Reply


Messages In This Thread
Kicking player because they logon. - by iLearner - 21.08.2016, 10:01
Re: Kicking player because they logon. - by Sew_Sumi - 21.08.2016, 10:11
Re: Kicking player because they logon. - by iLearner - 21.08.2016, 10:16
Re: Kicking player because they logon. - by Sew_Sumi - 21.08.2016, 11:15
Re: Kicking player because they logon. - by BrianS123 - 21.08.2016, 13:42
Re: Kicking player because they logon. - by iLearner - 21.08.2016, 14:08
Re: Kicking player because they logon. - by Sew_Sumi - 21.08.2016, 23:57
Re: Kicking player because they logon. - by iLearner - 22.08.2016, 10:25
Re: Kicking player because they logon. - by Sew_Sumi - 22.08.2016, 10:31

Forum Jump:


Users browsing this thread: 2 Guest(s)