PDA

View Full Version : Player TextDraw help


Mirsen2
17/08/2018, 04:31 PM
Hey people.

In my server, I never used TextDraws and i decided to make some.

I've made one player TextDraw, and one global. The global works, but I get warnings with player TDs:


C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(727) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(728) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(729) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(730) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(731) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(732) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(733) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(734) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(735) : warning 213: tag mismatch
C:\Users\Atlaas\Documents\CnR Server by M1r$en\gamemodes\simple.pwn(736) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


10 Warnings.


Lines 727 to 736:


TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 631.875000, 218.583389, "$00000000");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 3);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], 1255277567);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], -1);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 71);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);


Please guys help...

NeXTGoD
17/08/2018, 04:49 PM
If it's global variable then TDEditor_PTD[0]

Mirsen2
17/08/2018, 04:56 PM
If it's global variable then TDEditor_PTD[0]

My variable is global, it was:

new Text:TDEditor_PTD[MAX_PLAYERS][1];

Now it is:

new Text:TDEditor_PTD[1];

because I've got an error about arrays or something.

I've also did what you said, but again I get same warnings....

severance
17/08/2018, 08:06 PM
new PlayerText: TDEditor_PTD[MAX_PLAYERS][1]