SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/08/2014, 07:27 AM   #1
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default PlayerTextDraw BUG with LD_SPAC:white or?

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

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

Code:
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?
dirigent00 is offline   Reply With Quote
Old 10/08/2014, 07:53 AM   #2
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

You don't need to set the color of the textdraw when using LD_SPAC:white.
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 10/08/2014, 08:00 AM   #3
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

I know, but I want it transparent... I made it once, now I can't.
dirigent00 is offline   Reply With Quote
Old 10/08/2014, 08:02 AM   #4
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

EDIT: NVM My bad.
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 10/08/2014, 08:04 AM   #5
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

Alright try this 0xRRGGBB00
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 10/08/2014, 08:08 AM   #6
JonathanW
Huge Clucker
 
JonathanW's Avatar
 
Join Date: May 2014
Location: Montgomery Trailers, Red County.
Posts: 366
Reputation: 53
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

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.
__________________

I left Samp. The world is beautiful, just so beautiful, but shit, it took me quite a bit to realize it.
JonathanW is offline   Reply With Quote
Old 10/08/2014, 08:08 AM   #7
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

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 View Post
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.
dirigent00 is offline   Reply With Quote
Old 10/08/2014, 08:09 AM   #8
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

Oh yeah almost forgot that. iPleomax's Textdraw Editor has an option usebox. Check it out.
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 10/08/2014, 08:12 AM   #9
JonathanW
Huge Clucker
 
JonathanW's Avatar
 
Join Date: May 2014
Location: Montgomery Trailers, Red County.
Posts: 366
Reputation: 53
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

Quote:
Originally Posted by dirigent00 View Post
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.
__________________

I left Samp. The world is beautiful, just so beautiful, but shit, it took me quite a bit to realize it.
JonathanW is offline   Reply With Quote
Old 10/08/2014, 08:58 AM   #10
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: PlayerTextDraw BUG with LD_SPAC:white or?

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?
dirigent00 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
playerTextdraw nickstar Scripting Help 2 27/02/2013 12:06 AM
PlayerTextDraw Sime30 Scripting Help 4 06/02/2013 11:38 PM
[Ajuda] PlayerTextDraw ForT PortuguÍs/Portuguese 2 24/10/2012 04:14 PM
PlayerTextDraw - Selectable? 'Pawno. Scripting Help 0 14/09/2012 11:12 AM
PlayerTextDraw Marusa Scripting Help 3 29/07/2012 09:51 PM


All times are GMT. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.