
12-24-2001, 08:25 PM
|
|
Registered User
|
Join Date: Oct 2001
Location: Ontario, Canada
Posts: 266
|
|
|
fine fine... I kinda did it myself... here it is:
if (created||strequals(#c,reset clock)) {
setstring this.day,Sunday;
this.hours=12;
this.minutes1=0;
this.minutes2=0;
this.seconds1=0;
this.seconds2=0;
setstring this.ampm,AM;
timeout=0.05;
}
//The Clock Model
if (timeout) {
message #s(this.day) #v(this.hours):#v(this.minutes1)#v(this.minutes2): #v(this.seconds1)#v(this.seconds2) #s(this.ampm);
sleep 0.5;
message #s(this.day) #v(this.hours) #v(this.minutes1)#v(this.minutes2) #v(this.seconds1)#v(this.seconds2) #s(this.ampm);
timeout=0.5;
}
What I need to know now is how do I increase the strings and variables? And how do i set the time to what ever i say (for example: set clock day hours minutes AM/PM, and then i will say set clock Monday 8 23 PM. I want the seconds to start over as well) |
Last edited by WoRlaNN2k; 12-24-2001 at 08:47 PM..
|
|
|