mIRC Home    About    Download    Register    News    Help

Print Thread
countdown with dec #243416 17/11/13 10:47 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I trying to make a countdown befor a dialog are closed, and i trying to use "dec", can you slow down dec without the usage of timers? i trying to use "while (%x) {" and display the time in
the dialog, "Closing in %x seconds."

Trying to avoid timers for this.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: countdown with dec [Re: sparta] #243434 19/11/13 11:51 PM
Joined: Aug 2013
Posts: 73
Iire Offline
Babel fish
Offline
Babel fish
Joined: Aug 2013
Posts: 73
What about the -c or -z switches?, either of which will decrement the var once per second. (-z unsets the var when it hits 0)