SA-MP Forums Archive
What does '_:' tag stands for? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What does '_:' tag stands for? (/showthread.php?tid=640100)



What does '_:' tag stands for? - DuyDang2412 - 28.08.2017

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;
}




Re: What does '_:' tag stands for? - thegamer355 - 28.08.2017

_:var removes the PlayerText: tag, to avoid tag mismatch


Re: What does '_:' tag stands for? - 10MIN - 28.08.2017

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


Re: What does '_:' tag stands for? - Mauzen - 28.08.2017

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.


Re: What does '_:' tag stands for? - DuyDang2412 - 29.08.2017

Got it, thanks for your help.


Re: What does '_:' tag stands for? - Eoussama - 29.08.2017

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