SA-MP Forums Archive
Can't change color of textdraw - 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: Can't change color of textdraw (/showthread.php?tid=526634)



Can't change color of textdraw - SpartanacBH - 18.07.2014

Hi guyz,

I can't set opacity on playertextdraw. I tried this:
Код:
TD_Registracija[playerid][26] = CreatePlayerTextDraw(playerid, 224.799987, 110.506668, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, TD_Registracija[playerid][26], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TD_Registracija[playerid][26], 171.200012, 21.653320);
	PlayerTextDrawAlignment(playerid, TD_Registracija[playerid][26], 1);
	PlayerTextDrawColor(playerid, TD_Registracija[playerid][26], 0xFFFFFF22);
	PlayerTextDrawSetShadow(playerid, TD_Registracija[playerid][26], 0);
	PlayerTextDrawSetOutline(playerid, TD_Registracija[playerid][26], 0);
	PlayerTextDrawFont(playerid, TD_Registracija[playerid][26], 4);
	PlayerTextDrawSetSelectable(playerid, TD_Registracija[playerid][26], true);
but it's only set white color, or if I put 0x00000022, it set black color, without transparency. Why?


Re: Can't change color of textdraw - rockhopper - 18.07.2014

What color You want ?


Re: Can't change color of textdraw - SpartanacBH - 18.07.2014

White, full transparent. Only on my select, I'll change color of textdraw.


Re : Can't change color of textdraw - DarkZeroX - 18.07.2014

PlayerTextDrawColor(playerid, TD_Registracija[playerid][26], 0xFFFFFF22);
PlayerTextDrawColor(playerid, TD_Registracija[playerid][26], 0xFFFFFF90);


Re: Can't change color of textdraw - SpartanacBH - 18.07.2014

Still same, still full color, no matter what I put on 0xFFFFFFHERE


Re: Can't change color of textdraw - rockhopper - 18.07.2014

Try this :- 0xRRGGBB00