mIRC Homepage
Posted By: Turbo_boy seconds - 18/09/03 10:42 AM
I'm making a trivia-bot only i'm asking my self and other scripters how do i make a script with 0.001 sec
(Winaar: Jedi-Plus5 Antwoord: Steenkool Tijd: 14.300 Streak: 1 Punten: 5830 WPM: 7 Plaats: 12th)
i mean so the tijd ;-)
Posted By: pheonix Re: seconds - 18/09/03 10:47 AM
Before you ask the question:
set %ticks $ticks
when the question is answered:
$calc(($ticks - %ticks) / 1000) seconds.
Posted By: Turbo_boy Re: seconds - 18/09/03 10:54 AM
only now hi give it on 0.000 only not the good time :S
the time hi now saying is:

4hrs 47mins 48secs with the $duration command
Posted By: pheonix Re: seconds - 18/09/03 10:56 AM
eh?
Posted By: Turbo_boy Re: seconds - 18/09/03 11:08 AM
i have now this:

/testing.a {
.set %ticks $calc($ticks / 1000)
.timer 1 5 /test2
}
/test2 {
.set %ticks2 $calc($ticks / 1000)
.echo seconden $calc(%ticks2 - %ticks)
}
and its working great laugh
Posted By: Online Re: seconds - 18/09/03 03:53 PM
No need for the second variable, just use $calc(($ticks - %ticks) / 1000)
Posted By: Turbo_boy Re: seconds - 18/09/03 04:28 PM
now hi work not all the time :S some times hi dont $calc :S
© mIRC Discussion Forums