CLEO Help 0ACD countdown timer?

CLEO related
Status
Not open for further replies.

Zin

Expert
Joined
Aug 1, 2013
Messages
1,693
Reaction score
105
Ok so say I have a "wait" in cleo like "wait 10000" how can I have like a timer in the 0ACD opcode that kind of ticks down all the way to 0 like in this video of LagZ.cs there is like a timer that is counting to 999 how can I do this?


[video=youtube]https://www.youtube.com/watch?v=TqK8CA7uvzk[/video]
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Well you can't probably do anything in the current thread while you 'wait'. You could use a timer/wait combo.

[shcode=cpp]
    32@ = 0
    while 32@ < 10000
       wait 0
       0ad1: "%d/10000" 1 32@
    end
[/shcode]
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,693
Reaction score
105
NVM got it working it was because I put it in wrong section of code I put it in its own section and tried to gosub it but I just had to put it above the wait
 
Status
Not open for further replies.
Top