Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
seconds
Forums
Active Threads
Search
Who's Online
Help
Print Thread
seconds
#
50006
18/09/03
10:42 AM
T
Turbo_boy
Turbo_boy
T
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 ;-)
Copy Link to Clipboard
Re: seconds
#
50007
18/09/03
10:47 AM
P
pheonix
pheonix
P
Before you ask the question:
set %ticks $ticks
when the question is answered:
$calc(($ticks - %ticks) / 1000) seconds.
Copy Link to Clipboard
Re: seconds
#
50008
18/09/03
10:54 AM
T
Turbo_boy
Turbo_boy
T
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
Last edited by Turbo_boy;
18/09/03
10:56 AM
.
Copy Link to Clipboard
Re: seconds
#
50009
18/09/03
10:56 AM
P
pheonix
pheonix
P
eh?
Copy Link to Clipboard
Re: seconds
#
50010
18/09/03
11:08 AM
T
Turbo_boy
Turbo_boy
T
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
Copy Link to Clipboard
Re: seconds
#
50011
18/09/03
03:53 PM
Joined:
Dec 2002
Posts: 1,893
O
Online
Hoopy frood
Online
Hoopy frood
O
Joined:
Dec 2002
Posts: 1,893
No need for the second variable, just use $calc(($ticks - %ticks) / 1000)
Copy Link to Clipboard
Re: seconds
#
50012
18/09/03
04:28 PM
T
Turbo_boy
Turbo_boy
T
now hi work not all the time :S some times hi dont $calc :S
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage