RGB Codes in PlayerTextDrawSetString - 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: RGB Codes in PlayerTextDrawSetString (
/showthread.php?tid=645799)
RGB Codes in PlayerTextDrawSetString -
NealPeteros - 04.12.2017
Is it possible to add RGB Codes in PlayerTextDrawSetString?
Ex:
PHP код:
#define COL_GREEN "{00FF22}"
#define COL_WHITE "{FFFFFF}"
PlayerTextDrawSetString(playerid, AttributePTD1, ""COL_GREEN"O "COL_WHITE"O O O O O O O O O");
Shows an argument type mismatch error
Re: RGB Codes in PlayerTextDrawSetString -
Kaperstone - 04.12.2017
You can use GameText colors to color the text
"~g~O ~w~O O O O O O O O O"
https://sampwiki.blast.hk/wiki/GameTextStyle
Re: RGB Codes in PlayerTextDrawSetString -
NealPeteros - 04.12.2017
Well there was nothing wrong with the RGB. I just forgot to add [playerid] after the Textdraw name. Sorry bout that.