SetTimerEx
#6

Why would you create a new function for each variable?

You only need one function and you simply pass in each variable you want to change.

Let`s say you got var1, var2 and var3 you want to increase by one.

You use the function in the code above and call it for each variable like this:

SetTimerEx("VariableIncrease", 1000, false, "d", var1);
SetTimerEx("VariableIncrease", 1000, false, "d", var2);
SetTimerEx("VariableIncrease", 1000, false, "d", var3);

And all of them will be increased by one after 1k ms.
Reply


Messages In This Thread
SetTimerEx - by nesty - 29.01.2010, 13:40
Re: SetTimerEx - by Jeffry - 29.01.2010, 13:52
Re: SetTimerEx - by ray187 - 29.01.2010, 13:59
Re: SetTimerEx - by ray187 - 29.01.2010, 14:01
Re: SetTimerEx - by nesty - 29.01.2010, 15:20
Re: SetTimerEx - by ray187 - 30.01.2010, 11:02
Re: SetTimerEx - by nesty - 30.01.2010, 18:37
Re: SetTimerEx - by ray187 - 30.01.2010, 19:08
Re: SetTimerEx - by nesty - 30.01.2010, 19:17
Re: SetTimerEx - by ray187 - 30.01.2010, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)