TDEditor, warning 213: tag mismatch, PlayerTextDraw
#1

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

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*); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)