PDA

View Full Version : Time help?


XilosTinsu
06-15-2001, 11:46 PM
What's wrong with this?
if (playerenters) {toweapons *Time}
if (isweapon||timeout) {timeout=.05;
this.minute = int(timevar / .2)%60;
this.hour = int(this.minute / 60)%24;
this.day = int(this.hour / 24)%30;
this.month = int(this.day / 30)%12;
this.year = int(this.month / 12)}
if (weaponfired) {setstring year,#v(this.year);
setstring month,#v(this.month);
setstring day,#v(this.day);
setstring hour,#v(this.hour);
setstring minute,#v(this.minute);
say2 Excalibur Time#b
Time: #s(hour):#s(minute)#b
Date: #s(month)/#s(day)/#s(year)}

It doesn't show the right time when I fire the weapon and it also doesn't count time right.

grim_squeaker_x
06-16-2001, 05:58 PM
timevar only works online.