Warning 213:Tag mismatch in 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: Warning 213:Tag mismatch in Textdraw (
/showthread.php?tid=632371)
Warning 213:Tag mismatch in Textdraw - adri[4]Life - 13.04.2017
Hi Guys Today i Was Working On a Textdraw that shows Player Score & Money So I Got Two Warnings + The Textdraw isn't in it's Position Here is My Code:
Код:
public OnPlayerConnect(playerid)
{
//Textdraws
Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 148.989746, 359.916717, "____");
PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw7[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw7[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);
//Other Codes Here
Код:
Textstats(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw7[playerid]); //Line 2280
new string[100];
format(string, sizeof(string), "~b~Score: ~w~%d\n~g~Money: ~w~%d", GetPlayerScore(playerid), GetPlayerMoney(playerid));
TextDrawSetString(Textdraw7[playerid], string); //Line 2283
}
Warnings :
(2280) : warning 213: tag mismatch
(2283) : warning 213: tag mismatch
Re: Warning 213:Tag mismatch in Textdraw -
ISmokezU - 13.04.2017
Try Converting it huh?
PHP код:
Textstats(playerid)
{
new string[100];
format(string, sizeof(string), "~b~Score: ~w~%d\n~g~Money: ~w~%d", GetPlayerScore(playerid), GetPlayerMoney(playerid));
PlayerTextDrawSetString(playerid, Textdraw7[playerid], string);
PlayerTextDrawShow(playerid, Textdraw7[playerid]);
}
Re: Warning 213:Tag mismatch in Textdraw - adri[4]Life - 13.04.2017
thanks, It Worked Now +rep