ShowPlayerDialog getting weird
#5

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


Messages In This Thread
Color Problems in ShowPlayerDialog - by JaskaranSingh - 13.11.2018, 16:17
Re: ShowPlayerDialog getting weird - by JaskaranSingh - 13.11.2018, 18:43
Re: ShowPlayerDialog getting weird - by dotSILENT - 13.11.2018, 23:40
Re: ShowPlayerDialog getting weird - by JaskaranSingh - 14.11.2018, 08:59
Re: ShowPlayerDialog getting weird - by dotSILENT - 14.11.2018, 10:05
Re: ShowPlayerDialog getting weird - by JaskaranSingh - 14.11.2018, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)