SA-MP Forums Archive
Tag mismatch with INVALID_TEXT_DRAW - 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: Tag mismatch with INVALID_TEXT_DRAW (/showthread.php?tid=461664)



Tag mismatch with INVALID_TEXT_DRAW - magnusburton - 02.09.2013

Hey!

I'm getting a tag mismatch warning thanks to this code:

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(GetPVarInt(playerid, "pTID") == 0 && clickedid == INVALID_TEXT_DRAW) // caused on this line
    {
        return 1;
    }
    return 0;
}
I've tried to remove the "&& clickedid == INVALID_TEXT_DRAW" part and it works. What am I missing or doing wrong?


Re: Tag mismatch with INVALID_TEXT_DRAW - Dragonsaurus - 02.09.2013

In theory, it should work, but try to replace the "INVALID_TEXT_DRAW" with "0xFFFF".


Re: Tag mismatch with INVALID_TEXT_DRAW - magnusburton - 02.09.2013

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
In theory, it should work, but try to replace the "INVALID_TEXT_DRAW" with "0xFFFF".
Yeah, I tried that before and tried it now. Same result.

Thanks for your quick response though!


Re: Tag mismatch with INVALID_TEXT_DRAW - Dragonsaurus - 02.09.2013

Really weird, but if you do "Text:INVALID_TEXT_DRAW", there is no warning...
Edit for not re-posting: You are welcome, thank you too!


Re: Tag mismatch with INVALID_TEXT_DRAW - magnusburton - 02.09.2013

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
Really weird, but if you do "Text:INVALID_TEXT_DRAW", there is no warning...
Yes! There we go. Thank you