Thread: Stopwatch
View Single Post
  #6  
Old 08-30-2002, 10:42 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
use this for your minute:second.millisecond thing
NPC Code:

if (created) {
time={0,0,0};
timeout = .1;
}
if (timeout) {
time[2]=(time[2]+1)%10;
time[1]=(time[1]+0.1)%60;
time[0]=(time[0]+0.00166666666666666666666666666666667)%60;
setcharprop #c,#v(int(time[0])):#v(int(time[1])).#v(time[2]);
timeout = .1;
}


I would add hours in a similar way but graal doesnt support
2.77777777777777777777777777777778*(10^-5)(10 to the negative fifth power)
Reply With Quote