[Huge Question] Events Triggered by Time [5165]

03/06/2010 16:29 Paralyzer[GM]#16
Thanks ill start to learn this off by heart and erm
Code:
(2 HOURS VAL);
Do I add how many seconds in 2 hours or ?
03/06/2010 16:31 PeTe Ninja#17
FFS only a stupid idiot will ask that

60 SECONDS IN A MINUTE
60 MINUTES IN AN HOUR
2 HOURS = 60*60*2
03/06/2010 16:33 Nullable#18
Quote:
Originally Posted by Paralyzer[GM] View Post
Thanks ill start to learn this off by heart and erm
Code:
(2 HOURS VAL);
Do I add how many seconds in 2 hours or ?
Timers work using milliseconds, there are 1000 ms in 1 s, 60 * 60 is an hour in seconds, so it would be 3600 * 2 seconds in 2 hours, then multiply it by 1000 to find ms = (3600 * 2) * 1000 = 7,200,000 milliseconds :)
and the value should be double so: 7200000.0