Setting 2 timers in parallel
#1

Hello
I need help with setting 2 timers in parallel.
Here are the timers:
pawn Код:
forward CountDown();
forward Sec();

SetTimer("CountDown",30000,false);
SetTimer("Sec",1000,true);

public Sec() { time = time-1; }
public CountDown() {
    new str[128];
    format(str, sizeof(str), "~w~%d ~g~~h~~h~Seconds", time);
    GameTextForAll(iRace_CDString,1001,6);
    PlayerPlaySoundToAll(1056);
    return 1; }
(Yea I know not the best scripting skills there are,but I'll fix that)

Anyway I want them to work exacly on the same time,if not this is going to create tons of bugs.
How can I make them work in parallel?
Thanks
Nuriel
Reply


Messages In This Thread
Setting 2 timers in parallel - by nuriel8833 - 01.02.2012, 12:57
Re: Setting 2 timers in parallel - by milanosie - 01.02.2012, 13:01
Re: Setting 2 timers in parallel - by nuriel8833 - 01.02.2012, 13:03
Re: Setting 2 timers in parallel - by milanosie - 01.02.2012, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)