Annoying 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: Annoying textdraw (
/showthread.php?tid=470059)
Annoying textdraw -
x96664 - 16.10.2013
I have a little problem with the textdraw model preview, I can't hide the black background Im not sure if I have to set a color or something else.
Thanks in advance.
Re: Annoying textdraw -
Ayumi - 16.10.2013
Screenshots and/or code?
Re: Annoying textdraw -
x96664 - 16.10.2013
Quote:
Originally Posted by Ayumi
Screenshots and/or code?
|
I couldn't post the code because I posted this through my phone so:
pawn Код:
WS[18] = TextDrawCreate(540.000000, 350.000000, "_");
TextDrawFont(WS[18], 5);
TextDrawBackgroundColor(WS[18], 255);
TextDrawTextSize(WS[18], 98.000000, 99.000000);
TextDrawUseBox(WS[18], 1);
TextDrawBoxColor(WS[18], 255);
TextDrawSetPreviewModel(WS[18], 411);
TextDrawSetPreviewVehCol(WS[18], 3, 3);
TextDrawSetPreviewRot(WS[18], -16.000000, 0.000000, -55.000000, 1.000000);
Re: Annoying textdraw -
LeMoi - 16.10.2013
I believe you have to change the color of the TextDrawBackground
Re: Annoying textdraw -
Jankingston - 16.10.2013
TextDrawHideForPlayer
Re: Annoying textdraw -
LeMoi - 16.10.2013
Quote:
Originally Posted by Jankingston
TextDrawHideForPlayer
|
It would hide the whole textdraw, not the background.
Try this
pawn Код:
TextDrawBackgroundColor(WS[18], 0x00000055);
Re: Annoying textdraw -
x96664 - 16.10.2013
Quote:
Originally Posted by LeMoi
I believe you have to change the color of the TextDrawBackground
|
Quote:
Originally Posted by LeMoi
It would hide the whole textdraw, not the background.
Try this
pawn Код:
TextDrawBackgroundColor(WS[18], 0x00000055);
|
Both of you are right! I just used 0xFFFFFF00 instead of yours, anyway thank you for the help! I'm unable to rep+ you because I'm with negative rep.