SA-MP Forums Archive
TDEditor, warning 213: tag mismatch, PlayerTextDraw - 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: TDEditor, warning 213: tag mismatch, PlayerTextDraw (/showthread.php?tid=608604)



TDEditor, warning 213: tag mismatch, PlayerTextDraw - MarllonGTA - 03.06.2016

I always have problems it!
All lines of PTDs the TDEditor WITHOUT EDITING give this Warning
And look at me, there is nothing wrong, at least not realized.

Could help me to show the error and why the error?

pawn Код:
public OnPlayerConnect(playerid)
{
    TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 495.600036, 96.666702, "Ping:123");
    PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.296799, 1.278932);
    PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
    PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
    PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2);
    PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);

    TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 561.788879, 96.666702, "FPS:123");
    PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.296799, 1.278932);
    PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
    PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
    PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 0);
    PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
    PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 2);
    PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
I do not even manipulated, they to display data, are as from the TDeditor


Re: TDEditor, warning 213: tag mismatch, PlayerTextDraw - Micko123 - 03.06.2016

remove that first playerid after these ( brackets.
So instead of this
PHP код:
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 1); 
Write this
PHP код:
PlayerTextDrawSetShadow(TDEditor_PTD[playerid][1], 1); 
And put them OnGameModeInit and OnPlayerSpawn type
PHP код:
TextDrawShowForPlayer(playerid, *textdraw name*);