Player TextDraw help
#1

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

If it's global variable then TDEditor_PTD[0]
Reply
#3

Quote:
Originally Posted by NeXTGoD
Посмотреть сообщение
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....
Reply
#4

PHP код:
new PlayerTextTDEditor_PTD[MAX_PLAYERS][1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)