14.11.2018, 10:05
If hardcoding works, then it's not any SAMP limitation or bug, that's why I tried it with hardcoded colors.
Your formatting code is just bad.
If you allow the player to type in their custom hex color:
https://sampwiki.blast.hk/wiki/Colors_List
Grab the HexToInt function
Store the color field in database as integer, and in Pawn too
When the player inputs his color, do color = HexToInt(inputtext)
When formatting the dialog, use "{%06x}", color
It has to work.
Your formatting code is just bad.
If you allow the player to type in their custom hex color:
https://sampwiki.blast.hk/wiki/Colors_List
Grab the HexToInt function
Store the color field in database as integer, and in Pawn too
When the player inputs his color, do color = HexToInt(inputtext)
When formatting the dialog, use "{%06x}", color
It has to work.