Help me please with textdraw! - 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: Help me please with textdraw! (
/showthread.php?tid=590433)
Help me please with textdraw! -
ironmen - 29.09.2015
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);
__________________
Re: Help me please with textdraw! -
PrO.GameR - 29.09.2015
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
Re: Help me please with textdraw! -
garotin - 29.09.2015
You are creating and using regular TextDraw PlayerTextDraw function that is different, decide which is the TextDraw you will use.
Use:
PHP код:
TextDrawSetString(XPS, newxp);
Re: Help me please with textdraw! -
ironmen - 29.09.2015
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
Re: Help me please with textdraw! -
CalvinC - 29.09.2015
If you defined it as a player textdraw, you need to change all functions to match that.
TextDrawShowForPlayer should be
PlayerTextDrawShowForPlayer.
Re: Help me please with textdraw! -
PrO.GameR - 29.09.2015
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)