Float health and altitude won't change.
#2

Why are you using OnPlayerUpdate? and why there's a loop in this callback?

OnPlayerUpdate, also called OPU, is called atleast 30 times per second, and may be called more than that depending on what update that the player is sending. OPU with such a code can cause lag and errors (bugs). You can use Foreach or pool-size loop added in 0.3.7. You can move the whole code to a timer and call the timer every second.
Reply


Messages In This Thread
Float health and altitude won't change. - by NealPeteros - 28.04.2017, 12:02
Re: Float health and altitude won't change. - by Logic_ - 28.04.2017, 12:15
Re: Float health and altitude won't change. - by NealPeteros - 28.04.2017, 12:18
Re: Float health and altitude won't change. - by Logic_ - 28.04.2017, 12:20
Re: Float health and altitude won't change. - by NealPeteros - 28.04.2017, 12:22
Re: Float health and altitude won't change. - by Logic_ - 28.04.2017, 12:26
Re: Float health and altitude won't change. - by NealPeteros - 28.04.2017, 13:27
Re: Float health and altitude won't change. - by Vince - 28.04.2017, 15:18
Re: Float health and altitude won't change. - by NealPeteros - 28.04.2017, 16:10

Forum Jump:


Users browsing this thread: 2 Guest(s)