Mysql Load/Save Colors
#1

How to save and load colors like this in mysql db?

pawn Код:
#define COLOR_RED 0xAA3333AA
Im making system so i can dynamicly change a team color in game and it saves in TeamInfo in the DB, and ofc loads correctly like the other data.


Loading it from DB:
pawn Код:
cache_get_field_content(i, "Colour", Data),    TeamInfo[teamid][tColour] = Data;
Saving it to DB:
pawn Код:
`Colour` = %x", TeamInfo[teamid][tColour] );
How to do it correct?

And is the Colour field in DB supposed to be varchar?
Reply


Messages In This Thread
Mysql Load/Save Colors - by Richie© - 24.01.2013, 19:24
Re: Mysql Load/Save Colors - by Vince - 24.01.2013, 19:45
Re: Mysql Load/Save Colors - by Richie© - 24.01.2013, 20:45
Re: Mysql Load/Save Colors - by Vince - 24.01.2013, 21:53
Re: Mysql Load/Save Colors - by Richie© - 24.01.2013, 22:26
Re: Mysql Load/Save Colors - by AiRaLoKa - 17.05.2014, 05:10

Forum Jump:


Users browsing this thread: 1 Guest(s)