Passing "Text:" type on timer
#1

Hi everyone.
So, this is my function

Код:
public Hide_TD(playerid, Text:TD_ID)
{
    TextDrawHideForPlayer(playerid, TD_ID);
}
and my code

Код:
TextDrawShowForPlayer(playerid, TD);
SetTimerEx("Hide_TD", 4000, 0, "dd", playerid, TD);
Obivously I get a "tag mismatch" warning, cause I'm trying to pass text as integer.
How can I pass "Text:" variables in timers?
Reply
#2

It should work, it should pass its ID as you would expect...
I run things like the above and it works perfectly.
Reply
#3

This code should work.

But to remove the warning you can try this

pawn Код:
SetTimerEx("Hide_TD", 4000, 0, "dd", playerid, _:TD);
Reply
#4

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
This code should work.

But to remove the warning you can try this

pawn Код:
SetTimerEx("Hide_TD", 4000, 0, "dd", playerid, _:TD);
Exactly what I was seeking for, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)