What does '_:' tag stands for?
#1

Hello guys, I've just seen this topic (https://sampforum.blast.hk/showthread.php?tid=577793) and I'm wondering what is _: tag in this code?
Quote:

SetTimerEx("EndOfTD", 3000, false, "ii", playerid, _:td);
forward EndOfTD(playerid, PlayerText:td);
public EndOfTD(playerid, PlayerText:td)
{
PlayerTextDrawDestroy(playerid, td);
return 1;
}

Reply
#2

_:var removes the PlayerText: tag, to avoid tag mismatch
Reply
#3

The _: tag is a "universal" tag which removes the tag mismatch warning sometimes...
Reply
#4

Actually not just for PlayerText, and not universal. Its just the default tag, the one that variables got if you dont set a tag at all for them. It removes the tag mismatch warning sometimes when a function requires a default cell but get e.g. a textdraw.
Reply
#5

Got it, thanks for your help.
Reply
#6

More useful info for you, https://sampforum.blast.hk/showthread.php?tid=630470
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)