INVALID_TEXT_DRAW for PlayerTextDraw
#1

Well,

pawn Код:
new PlayerText:textDr[MAX_PLAYERS][5];

....
for (new p=0; p<5; p++) {
    tdSpeedo_bar[....][p] = INVALID_TEXT_DRAW;
}
gives me "warning 213: tag mismatch"

I couldn't find the INVALID_TEXT_DRAW equivalent for PlayerTextDraws, if anyone knows, greatly appreciated.

Grim.
Reply
#2

EDIT: Sorry, couldn't get your question.

You've to add _: before the textdraw variable to prevent the tag mismatch

Example:
pawn Код:
if(_:TextdrawVar == INVALID_TEXT_DRAW) {
}
If that doesn't helps, than I'm sorry.
Reply
#3

pawn Код:
tdSpeedo_bar[....][p] = _:INVALID_TEXT_DRAW;
Reply
#4

Thanks for the tip for hiding the compiler errors, shame there is not an invalid id for player text draws

Edit:
Does not seem to hide the errors, still getting tag mismatch.
Reply
#5

Try?
pawn Код:
#undef INVALID_TEXT_DRAW
#define INVALID_TEXT_DRAW  Text:0xFFFF
Also change that _: to Text:
Reply
#6

pawn Код:
tdSpeedo_bar[....][p] = PlayerText:INVALID_TEXT_DRAW;
Reply
#7

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
tdSpeedo_bar[....][p] = PlayerText:INVALID_TEXT_DRAW;
Worked a treat, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)