SA-MP Forums Archive
Textdraws get darker - 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: Textdraws get darker (/showthread.php?tid=622710)



Textdraws get darker - iamjems - 25.11.2016

Why does my bar textdraw (using a box) change it's color to black when I walk and it goes back to the normal color when I don't move?

PHP код:
newsbar[0] = TextDrawCreate(0.999987442.207885"_");
TextDrawLetterSize(newsbar[0], 0.4046660.438517);
TextDrawTextSize(newsbar[0], 641.0000000.000000);
TextDrawAlignment(newsbar[0], 1);
TextDrawColor(newsbar[0], -1);
TextDrawUseBox(newsbar[0], 1);
TextDrawBoxColor(newsbar[0], 170);
TextDrawSetShadow(newsbar[0], 0);
TextDrawSetOutline(newsbar[0], 0);
TextDrawBackgroundColor(newsbar[0], 255);
TextDrawFont(newsbar[0], 1);
TextDrawSetProportional(newsbar[0], 0);
TextDrawSetShadow(newsbar[0], 0); 



Re: Textdraws get darker - Alvitr - 25.11.2016

Quote:
Originally Posted by iamjems
Посмотреть сообщение
Why does my bar textdraw (using a box) change it's color to black when I walk and it goes back to the normal color when I don't move?

PHP код:
newsbar[0] = TextDrawCreate(0.999987442.207885"_");
TextDrawLetterSize(newsbar[0], 0.4046660.438517);
TextDrawTextSize(newsbar[0], 641.0000000.000000);
TextDrawAlignment(newsbar[0], 1);
TextDrawColor(newsbar[0], -1);
TextDrawUseBox(newsbar[0], 1);
TextDrawBoxColor(newsbar[0], 170);
TextDrawSetShadow(newsbar[0], 0);
TextDrawSetOutline(newsbar[0], 0);
TextDrawBackgroundColor(newsbar[0], 255);
TextDrawFont(newsbar[0], 1);
TextDrawSetProportional(newsbar[0], 0);
TextDrawSetShadow(newsbar[0], 0); 
https://sampwiki.blast.hk/wiki/TextDrawBoxColor

have you use TextDrawShowForPlayer after change color?


Re: Textdraws get darker - iamjems - 25.11.2016

Quote:
Originally Posted by Alvitr
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/TextDrawBoxColor

have you use TextDrawShowForPlayer after change color?
I use it when a player spawns.


Re: Textdraws get darker - Alvitr - 25.11.2016

Quote:
Originally Posted by iamjems
Посмотреть сообщение
I use it when a player spawns.
can you show us that scripts when player spawn and change box color please?