Topic: How to deal with the time loop?
Hi guys,
Do you know how to display a message several times at intervals of e.g. 1 second? I tried to use if(Server () -> Tick ()% 50 == 0), but when another person comes to the server, the message doubles.
You are not logged in. Please login or register.
Teeworlds Forum → Discussions → How to deal with the time loop?
Hi guys,
Do you know how to display a message several times at intervals of e.g. 1 second? I tried to use if(Server () -> Tick ()% 50 == 0), but when another person comes to the server, the message doubles.
looks like your code is evaluated for every player. try to put it somewhere independent of the amount of players.
the class CPlayer for example is instantiated for every player on the server and thus ticked for each.
Teeworlds Forum → Discussions → How to deal with the time loop?
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.