What ID does the first textdraw return?
#1

I was trying to find out where textdraw IDs start at but there's a small problem, I get a warning when trying to compile this:

pawn Код:
new Text:textdraw = TextDrawCreate(1.0,45.0,"testing");
printf("Textdraw ID: %d",textdraw);
The warning is at the print line saying "warning 213: tag mismatch".
Reply
#2

I am not sure. The warning can be circumvented by prefixing the variable with an empty tag like so:
pawn Код:
printf("Textdraw ID: %d", _:textdraw);
Reply
#3

Thanks, it worked
Reply
#4

Yes, you get a warning. But, that doesn't mean it doesn't work.

My results:

pawn Код:
[13:21:26] Textdraw ID: 0
[13:21:26] Textdraw2 ID: 1
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)