14.04.2012, 12:31
So I have four 1-second timers that start on OnGameModeInit. I'm trying to make them start 1 second apart from each other. How would I be able to pull this off?
myTimers[0] = SetTimer("serverLoops", 1000, true); myTimers[1] = SetTimer("playerLoops", 1000, true); myTimers[2] = SetTimer("dbLoops", 1000, true); myTimers[3] = SetTimer("miscLoops", 1000, true);
myTimers[0] = SetTimer("serverLoops", 1000, true); myTimers[1] = SetTimer("playerLoops", 2000, true); myTimers[2] = SetTimer("dbLoops", 3000, true); myTimers[3] = SetTimer("miscLoops", 4000, true);
SetTimer("serverLoops", 1000, true); public serverLoops() { SetTimer("playerLoops", 1000, false); }