Checking against textdraw IDs? - 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: Checking against textdraw IDs? (
/showthread.php?tid=441231)
Checking against textdraw IDs? -
Hoborific - 02.06.2013
pawn Код:
if(TXDname[playerid] != INVALID_TEXT_DRAW)
{
TextDrawDestroy(TXDname[playerid]);
}
Код:
Functions.pwn(618) : warning 213: tag mismatch
Ideas? I've just been having problems where if it isn't created and I delete it, it deletes the first textdraw created.
Re: Checking against textdraw IDs? -
Scenario - 02.06.2013
pawn Код:
!= Text:INVALID_TEXT_DRAW
You have to add a tag to it.
Re: Checking against textdraw IDs? -
Hoborific - 02.06.2013
Cheers bro haha, Always something. rep++;