SA-MP Forums Archive
TextDraw Problem - 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: TextDraw Problem (/showthread.php?tid=600287)



TextDraw Problem - LaLy17 - 06.02.2016

How i can remove the black backgound when i create a TextDraw with a object ?

Photo: http://imgur.com/J8HaL08


Re: TextDraw Problem - TopShooter - 06.02.2016

Set the box color to 0 0 0 or unknown color and its going to be with UNKNOWN color which means, No colors such as black are going to appear


Re: TextDraw Problem - Sawalha - 06.02.2016

try setting textdrawbackgroundcolor or textdrawboxcolor's color if that didn't work to
pawn Код:
0xFFFFFF00



Re: TextDraw Problem - LaLy17 - 06.02.2016

There are my lines. No TextDrawBackGroundColor.

Код HTML:
   img = TextDrawCreate(485.600036, 285.973449, "LD_SPAC:white");
 TextDrawLetterSize(img, -0.005599, -1.940265);
 TextDrawTextSize(img, 67.999969, 65.706649);
 TextDrawAlignment(img, 2);
 TextDrawColor(img, -1);
 TextDrawBoxColor(img, 102);
 TextDrawSetShadow(img, 0);
 TextDrawSetOutline(img, 0);
 TextDrawFont(img, 5);
 TextDrawSetPreviewModel(img, 411);
 TextDrawSetPreviewRot(img, 356.000000, -1.000000, 0.000000, 1.000000);



Re: TextDraw Problem - Sawalha - 06.02.2016

then, the box's color - textdrawboxcolor


Re: TextDraw Problem - LaLy17 - 06.02.2016

Yep. I know, i try to remove it, to change the color, but the black is still there.


Re: TextDraw Problem - Sawalha - 06.02.2016

not removing it...
look, just add this to your textdraw:
pawn Код:
TextDrawSetShadow(img, 0xFFFFFF00);
the box color code, just update it so it will be
pawn Код:
TextDrawBoxColor(img, 0xFFFFFF00);



Re: TextDraw Problem - LaLy17 - 07.02.2016

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
not removing it...
look, just add this to your textdraw:
pawn Код:
TextDrawSetShadow(img, 0xFFFFFF00);
the box color code, just update it so it will be
pawn Код:
TextDrawBoxColor(img, 0xFFFFFF00);
I don't know man. Try to take the lines to place in a test gamemod to see, cauze at me, that didn't work. I really don' t know why.


Re: TextDraw Problem - Mencent - 07.02.2016

PHP код:
img TextDrawCreate(485.600036285.973449"LD_SPAC:white");
TextDrawLetterSize(img, -0.005599, -1.940265);
TextDrawTextSize(img67.99996965.706649);
TextDrawAlignment(img2);
TextDrawColor(img, -1);
TextDrawBoxColor(img102);
TextDrawSetShadow(img0);
TextDrawSetOutline(img0);
TextDrawFont(img5);
TextDrawSetPreviewModel(img411);
TextDrawSetPreviewRot(img356.000000, -1.0000000.0000001.000000);
TextDrawSetBackgroundColor(img,0x00000000); 
Try this.