Posts: 775
Threads: 78
Joined: Dec 2014
Hi, so this is what I receive:
Код:
[warning] client exceeded 'messageholelimit' (1) 192.168.0.5:50347 (3815) Limit: 3000
I released that it has something to do with this:
http://pastebin.com/vkagudhW
Any suggestion?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
You have a recursion there. Every time that recursion occurs a new repeating timer is set but the old one isn't killed. Eventually you will have so many timers that they all fire one after the other, which results in an extreme amount of data to send, which results in this problem. You must've noticed a CPU spike as well. Also textdraw does not need to be re-shown when SetString is used.
Posts: 775
Threads: 78
Joined: Dec 2014
Oh, thank you.
I though that I needed to hide & show between. Lmao.
I'll try it out.
Posts: 775
Threads: 78
Joined: Dec 2014
Finally made it work, now I'm just wondering, would it cause lag if I run the timer each 01 millisecond?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
I'll assume you mean 10. And then the answer is: yes, probably. For reference, OnPlayerUpdate is called roughly every 30 milliseconds so this is even faster than that. The blink of an eye is about 300 milliseconds.
Posts: 775
Threads: 78
Joined: Dec 2014
What about 500? a half second.