Posts: 41
Threads: 9
Joined: Dec 2007
Reputation:
0
Hi, I would now if it is possible to use a fonction who do some actions on a textdraw with a timer, if yes, how ? Please. :)
Posts: 167
Threads: 6
Joined: Dec 2008
Reputation:
0
Yes it is possible
but what actions
Posts: 788
Threads: 22
Joined: May 2006
Reputation:
0
Pass it - "function[]" is the first argument of the SetTimer(Ex) function(s).
Or do you mean pass a TextDraw ID like - "i", _:textid using SetTimerEx ? Then you have say "TextDrawShowFor...( textid..." in your timer ?
Either way it is possible yes, just pass whatever argument as you usually would as TexDraws are just normal functions like any other.
Posts: 3
Threads: 0
Joined: Feb 2009
Reputation:
0
Hi im having an issue passing a textdraw ID through settimerex:
I've tried
SetTimerEx("TxtDestroy", 25000, false, "i", Textdraw0:textdrawid);
SetTimerEx("TxtDestroy", 25000, 0, "i", Textdraw0);
SetTimerEx("TxtDestroy", 25000, 0, "i", Text:Textdraw0);
But i either get a "tag mismatch" warning or a bad pass to the TxtDestroy f'n. Any ideas?
Posts: 2,593
Threads: 34
Joined: Dec 2007
Код:
SetTimerEx("TxtDestroy", 25000, 0, "i", _:Textdraw0);