22.03.2013, 15:13
(
Последний раз редактировалось Anak; 22.03.2013 в 15:55.
Причина: Fixed
)
Fixed
new timer1;
public OnGameModeInit()
{
print("Starting timer...");
timer1 = SetTimer("message", 1000, true);
}
forward message();
public message()
{
if(some_condition)
{
KillTimer(timer1);
}
else
{
print("1 second has passed");
}
}
new Time[4]; // in this case 4 times
/// any CallBack
Time[0] = SetTimer("FunctionA", 1000, true);
Time[1] = SetTimer("FunctionB", 1000, true);
Time[2] = SetTimer("FunctionC", 1000, true);
Time[3] = SetTimer("FunctionD", 1000, true);
/// any CallBack
for( new i; i < Time; i++)
{
KillTimer( Time[i] );
}
new T1;
new T2;
new T3;
new T4;
T1 = SetTimer("FunctionA", 1000, true);
T2 = SetTimer("FunctionB", 1000, true);
T3 = SetTimer("FunctionC", 1000, true);
T4 = SetTimer("FunctionD", 1000, true);
// in command?
KillTimer(T1);
KillTimer(T2);
KillTimer(T3);
KillTimer(T4);