24.10.2010, 21:21
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.. }