Help me please with textdraw!
#1

I've made a textdraw and everything is fine !
But...
This code:

Код:
PlayerTextDrawSetString(playerid, XPS, newxp);
Shows this warning:
Код:
warning 213: tag mismatch
What is the problem ??
Thanks !!
Ironmen

EDIT:

TextDraw create:

Код:
XPS = TextDrawCreate(310, 432, "Xp: ");
Update the text code:

Код:
    new newxp[246];
    format(newxp, sizeof(newxp), "Xp: %d", XP[playerid]);
    PlayerTextDrawSetString(playerid, XPS, newxp);
__________________
Reply
#2

No one will help you if you make 9 topics for every problem you have, I already answered you and fixed your problem, learn to have patience.
your answer is here:
http://forum.sa-mp.com/showpost.php?...5&postcount=13
Reply
#3

You are creating and using regular TextDraw PlayerTextDraw function that is different, decide which is the TextDraw you will use.

Use:
PHP код:
TextDrawSetString(XPSnewxp); 
Reply
#4

Now everything is fine except this:
Код:
TextDrawShowForPlayer(playerid, XPS);
Код:
warning 213: tag mismatch
The same problem but in another line!

Please help me!

Thanks!!

Ironmen
Reply
#5

If you defined it as a player textdraw, you need to change all functions to match that.
TextDrawShowForPlayer should be PlayerTextDrawShowForPlayer.
Reply
#6

Quote:
Originally Posted by ironmen
Посмотреть сообщение
Now everything is fine except this:
Код:
TextDrawShowForPlayer(playerid, XPS);
Код:
warning 213: tag mismatch
The same problem but in another line!

Please help me!

Thanks!!

Ironmen
BECAUSE YOU ARE DOING IT WRONG
Don't bold and increase your font, instead learn how to script or at least ask for help like an adult not a 10y/o kid

you are making an apple, and distributing it like it's a pie, you can't make playertextdraws and use "TextDrawShowForPlayer", instead you should use PlayerTextDrawShow(playerid, PlayerText:text)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)