13.03.2013, 09:27
ok.
for example:
I wanted to make a timer include that made one timer work like
rather than
im just using
so that i can have multiple functions using just one timer
like this
also was going to add in a question, may as well do it here. how would i make processing cmds and timers to read and write faster?
for example:
I wanted to make a timer include that made one timer work like
pawn Код:
ST(S(5), 1); // 5 seconds
pawn Код:
SetTimer(funcname[], interval, repeating)
pawn Код:
SetTimer(interval, repeating)
like this
pawn Код:
public DoSomeThingHere1()
{
SendClientMessageToAll(LIGHT_BLUE,"MSG1");
ST(S(5),1); //5 seconds
return 1;
}
public DoSomeThingHere2()
{
SendClientMessageToAll(LIGHT_BLUE,"MSG2");
ST(S(5),1); //5 seconds
return 1;
}