Tag mismatch with INVALID_TEXT_DRAW
#1

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?
Reply
#2

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

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!
Reply
#4

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!
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)