17.09.2011, 19:27
Quote:
1° I think this make no sense. In that case will update the message a lot every second when g_switch is called, but it must be called with true or false at the end.
2° return true / return false, is not equal to return 1 / return 0 . |
OnPlayerUpdate will call the rest of it's functions if g_switch is true.
which means until the timer ticks after a second it won't continue.
Inshort it will make OnPlayerUpdate perform only per second but not when player is afk. (I know it cause it works.)
2. return true = return 1, return false = return 0....
I'm not here to solve my problem cause I don't have any. I just wanna see if there are better methods.