Textdraws get darker
#1

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); 
Reply
#2

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?
Reply
#3

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.
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)