Help with timers..
#2

Try This:

Код:
new count;
new timer1;
new timer2;

forward Timer1();
forward Timer2();

timer1 = SetTimer("Timer1", 1000, 1);

public Timer1()
{
    count++;
    if(count > 10)
    {
        KillTimer(timer1);
        timer2 = SetTimer("Timer2", 500, 1);
        printf("called 1");
    }
}

public Timer2()
{
    printf("called 2");
    //stuff here..
}
Reply


Messages In This Thread
Help with timers.. - by The_Moddler - 24.10.2010, 21:10
Re: Help with timers.. - by Camacorn - 24.10.2010, 21:21
Respuesta: Help with timers.. - by The_Moddler - 24.10.2010, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)