mIRC Home    About    Download    Register    News    Help

Print Thread
J
JuanAm
JuanAm
J
How I make, a timer count the time, and then run the command associated with it?

I want to count the 30 seconds timer, then run $ gettok .join (? Nal% nums, 32).
I do not wish to continue the loop until the time expires in 30 seconds ..

EXAMPLE:

alias Autojoin {
var %Nums = 1
while (%Nums <= $numtok(%canales,32)) {
.timer 1 30 .join $gettok(%canales,%nums,32)
inc %Nums
}
}


I need a pause is made, until after the count of 30 seconds.




Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
You don't need to pause anything, just increase the duration of the timer with each pass.

Code:
alias Autojoin {
  var %Nums = 1
  while (%Nums <= $numtok(%canales,32)) {
    .timer 1 $calc(30 * %nums) .join $gettok(%canales,%nums,32) 
    inc %Nums
  }
}

J
JuanAm
JuanAm
J
Work!!

Thank you

Last edited by JuanAm; 12/11/14 10:48 PM. Reason: Solved

Link Copied to Clipboard