SA-MP Forums Archive
PlayerTextDrawSetPreviewModel unwanted box - 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: PlayerTextDrawSetPreviewModel unwanted box (/showthread.php?tid=538843)



PlayerTextDrawSetPreviewModel unwanted box - HyperionSU - 24.09.2014

Hey,

I have an extremely annoying problem at my preview textdraws. When I create them, before they actually appear, a black box is shown instead (even if the box background is transparent). However, shortly after that, the black box dissappears.

You can see an example right here: (Watch from 0:06 - right before the textdraw actually appears, you can see a black box at the top-left)
https://www.youtube.com/watch?v=pk9S4QWakHo

How can I avoid that annoying box?


Re: PlayerTextDrawSetPreviewModel unwanted box - Pottus - 24.09.2014

Turn your box alpha off 0x00000000


Re: PlayerTextDrawSetPreviewModel unwanted box - HyperionSU - 24.09.2014

Okay, did this:

pawn Код:
PlayerTextDrawBackgroundColor(playerid, text[playerid], 0x00000000);
Doesn't work.


Re: PlayerTextDrawSetPreviewModel unwanted box - Pottus - 24.09.2014

https://sampwiki.blast.hk/wiki/PlayerTextDrawBoxColor


Re: PlayerTextDrawSetPreviewModel unwanted box - Dignity - 24.09.2014

Alternatively, try this:

pawn Код:
PlayerTextDrawBackgroundColor(playerid, text[playerid], 0);



Re: PlayerTextDrawSetPreviewModel unwanted box - HyperionSU - 24.09.2014

Worked like a charm, Pottus. Thanks a lot!