Player TextDraw help - 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: Player TextDraw help (
/showthread.php?tid=657907)
Player TextDraw help -
Mirsen2 - 17.08.2018
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...
Re: Player TextDraw help -
NeXTGoD - 17.08.2018
If it's global variable then TDEditor_PTD[0]
Re: Player TextDraw help -
Mirsen2 - 17.08.2018
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....
Re: Player TextDraw help -
severance - 17.08.2018
PHP код:
new PlayerText: TDEditor_PTD[MAX_PLAYERS][1]