A tricky one (funcname[])
#7

ok.
for example:
I wanted to make a timer include that made one timer work like
pawn Код:
ST(S(5), 1); // 5 seconds
rather than
pawn Код:
SetTimer(funcname[], interval, repeating)
im just using
pawn Код:
SetTimer(interval, repeating)
so that i can have multiple functions using just one timer
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;
}
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?
Reply


Messages In This Thread
A tricky one (funcname[]) - by Lookin - 13.03.2013, 07:31
Re: A tricky one (funcname[]) - by Vince - 13.03.2013, 08:03
Re: A tricky one (funcname[]) - by Dan.. - 13.03.2013, 08:04
Re: A tricky one (funcname[]) - by Sinner - 13.03.2013, 08:25
Re: A tricky one (funcname[]) - by MP2 - 13.03.2013, 08:29
Re: A tricky one (funcname[]) - by cessil - 13.03.2013, 08:58
Re: A tricky one (funcname[]) - by Lookin - 13.03.2013, 09:27
Re: A tricky one (funcname[]) - by Vince - 13.03.2013, 09:54
Re: A tricky one (funcname[]) - by Lookin - 13.03.2013, 11:15
Re: A tricky one (funcname[]) - by Lookin - 13.03.2013, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)