24.10.2010, 21:10
Ok, I have this example:
So, in my console 'called 1' get's printed, but 'called 2' doesn't.. so the timer isn't working correctly.. any ideas?
pawn Код:
new count;
new timer1;
new timer2;
timer1 = SetTimer("Timer1", 1000, 1);
forward Timer1();
public Timer1()
{
count++;
if(count > 10)
{
KillTimer(timer1);
timer2 = SetTimer("Timer2", 500, 1);
printf("called 1");
}
}
forward Timer2();
public Timer2()
{
printf("called 2");
//stuff here..
}