Custom TextDraw Color
#2

PlayerTextDrawUseBox doesn't expect a string.
It expects a 1 (for box on) or 0 (box off).

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

The color of the box is changed using PlayerTextDrawBoxColor.
So you need to enable the box and then set its color seperately.

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

But you cannot use the input directly as it is a string, and not a number.
If you use sscanf, you can use it to get the color as integer from the string easily:

PHP код:
new color;
sscanf(inputtext"x"color); 
Or find an include or function that converts a string hex color to integer.
Reply


Messages In This Thread
Custom TextDraw Color - by valelelex - 20.12.2018, 10:38
Re: Custom TextDraw Color - by NaS - 20.12.2018, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)