Warning 213:Tag mismatch in Textdraw
#1

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
Reply
#2

Try Converting it huh?

PHP код:
Textstats(playerid)
{
    new 
string[100];
    
format(stringsizeof(string), "~b~Score: ~w~%d\n~g~Money: ~w~%d"GetPlayerScore(playerid), GetPlayerMoney(playerid)); 
    
PlayerTextDrawSetString(playeridTextdraw7[playerid], string); 
    
PlayerTextDrawShow(playeridTextdraw7[playerid]); 

Reply
#3

thanks, It Worked Now +rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)