20.12.2018, 12:02
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:
Or find an include or function that converts a string hex color to integer.
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);