29.01.2010, 15:20
lol first, thanks for the proposals!
But I want to know how i can set a variable after a certain time like var1?
and on timer2 var2 and so on
I dont want to create for 100 variables 100 functions like
I just need a timer who set a variable after this timer's time(I've over 50 variable) So i need 50 timer but i also need 50 public functions? hope u know what i mean
But I want to know how i can set a variable after a certain time like var1?and on timer2 var2 and so on
I dont want to create for 100 variables 100 functions like
pawn Код:
Timer1=SetTimer("Function_for_varibale_1",3000,false); //Everywhere in a public function
pawn Код:
Timer2=SetTimer("Function_for_varibale_2",3000,false); //Everywhere in another public function
pawn Код:
public Function_for_varibale_1()
{
var1++;
}
pawn Код:
public Function_for_varibale_2()
{
var2++;
}

