SA-MP Forums Archive
PlayerTextDraw BUG with LD_SPAC:white or? - 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: PlayerTextDraw BUG with LD_SPAC:white or? (/showthread.php?tid=530991)



PlayerTextDraw BUG with LD_SPAC:white or? - dirigent00 - 10.08.2014

Look at this, I dunno is this a bug or what? Here's the pic and the codes:

http://i.imgur.com/HNHPZWm.png

Код:
TD_reglog[29][playerid] = CreatePlayerTextDraw(playerid, 328.800048, 98.559997, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[29][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[29][playerid], 163.999984, 14.933335);
PlayerTextDrawAlignment(playerid, TD_reglog[29][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[29][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[29][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[29][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[29][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[29][playerid], true);

TD_reglog[30][playerid] = CreatePlayerTextDraw(playerid, 328.200103, 130.173309, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[30][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[30][playerid], 163.999984, 14.933335);
PlayerTextDrawAlignment(playerid, TD_reglog[30][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[30][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[30][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[30][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[30][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[30][playerid], true);

TD_reglog[31][playerid] = CreatePlayerTextDraw(playerid, 328.400115, 165.520111, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[31][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[31][playerid], 163.999984, 14.933335);
PlayerTextDrawAlignment(playerid, TD_reglog[31][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[31][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[31][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[31][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[31][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[31][playerid], true);

TD_reglog[32][playerid] = CreatePlayerTextDraw(playerid, 328.600128, 202.360092, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[32][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[32][playerid], 163.999984, 14.186668);
PlayerTextDrawAlignment(playerid, TD_reglog[32][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[32][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[32][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[32][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[32][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[32][playerid], true);

TD_reglog[33][playerid] = CreatePlayerTextDraw(playerid, 329.600128, 236.960159, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[33][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[33][playerid], 163.199981, 13.439998);
PlayerTextDrawAlignment(playerid, TD_reglog[33][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[33][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[33][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[33][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[33][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[33][playerid], true);

TD_reglog[34][playerid] = CreatePlayerTextDraw(playerid, 329.000152, 293.960235, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[34][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[34][playerid], 162.399978, 14.933335);
PlayerTextDrawAlignment(playerid, TD_reglog[34][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[34][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[34][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[34][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[34][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[34][playerid], true);

TD_reglog[35][playerid] = CreatePlayerTextDraw(playerid, 329.599914, 311.360046, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, TD_reglog[35][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, TD_reglog[35][playerid], 163.199981, 15.680001);
PlayerTextDrawAlignment(playerid, TD_reglog[35][playerid], 1);
PlayerTextDrawColor(playerid, TD_reglog[35][playerid], 0x00000011);
PlayerTextDrawSetShadow(playerid, TD_reglog[35][playerid], 0x00000011);
PlayerTextDrawSetOutline(playerid, TD_reglog[35][playerid], 0x00000011);
PlayerTextDrawFont(playerid, TD_reglog[35][playerid], 4);
PlayerTextDrawSetSelectable(playerid, TD_reglog[35][playerid], true);
I set the color to the 0x00000011, but color of TD is BLACK!
That's the case if I don't show TD's before this one, but if I show TD's before this, it works fine. Why?


Re: PlayerTextDraw BUG with LD_SPAC:white or? - Faisal_khan - 10.08.2014

You don't need to set the color of the textdraw when using LD_SPAC:white.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - dirigent00 - 10.08.2014

I know, but I want it transparent... I made it once, now I can't.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - Faisal_khan - 10.08.2014

EDIT: NVM My bad.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - Faisal_khan - 10.08.2014

Alright try this 0xRRGGBB00


Re: PlayerTextDraw BUG with LD_SPAC:white or? - JonathanW - 10.08.2014

Well, to make it Transparent. Make a Box, instead of Texture Box. With Texture box, you can Set Transparency. To be simple, use iPleomax's Textdraw Editor, it has Everything.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - dirigent00 - 10.08.2014

Tried, not working. Please read, it work if I show TD's with text, before them. If I hide it, LD_SPAC:white set the color only to the 0xRRGGBB, without AA.

Quote:
Originally Posted by JonathanW
Посмотреть сообщение
Well, to make it Transparent. Make a Box, instead of Texture Box. With Texture box, you can Set Transparency. To be simple, use iPleomax's Textdraw Editor, it has Everything.
Box is not selectable.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - Faisal_khan - 10.08.2014

Oh yeah almost forgot that. iPleomax's Textdraw Editor has an option usebox. Check it out.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - JonathanW - 10.08.2014

Quote:
Originally Posted by dirigent00
Посмотреть сообщение
Tried, not working. Please read, it work if I show TD's with text, before them. If I hide it, LD_SPAC:white set the color only to the 0xRRGGBB, without AA.



Box is not selectable.
Well, kinda right. But, why don't you create some TEXT over box, which will be Selectable. Let me state clearly.
Texture Box = No Transparency, Selectable.
Box = Transparency, Not Selectable.
Text = Selectable.


Re: PlayerTextDraw BUG with LD_SPAC:white or? - dirigent00 - 10.08.2014

I told you, this will work, if I show text TD before LD_SPAC, but if I hide it, it becomes black. I dunno why?