Posts: 723
Threads: 366
Joined: Jun 2016
Hi,
Can i write hex code like that:
{FFFFFF}
To mysql database?
Posts: 1,939
Threads: 11
Joined: Oct 2015
Reputation:
0
store them as string,
...........though the colors are integers
Posts: 723
Threads: 366
Joined: Jun 2016
Yes but do i need escape or smth? like i have in string that hex code, and i'am updatting
update table set hexcode='%s' WHERE name='%s'", PLAYERHEXCODE[ playerid ], playername );
Posts: 1,939
Threads: 11
Joined: Oct 2015
Reputation:
0
if the color code (hex code ) is used as string (meaning PLAYERHEXCODE[ playerid ] is string) in your script then you have to escape it.