24.01.2013, 19:24
How to save and load colors like this in mysql db?
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:
Saving it to DB:
How to do it correct?
And is the Colour field in DB supposed to be varchar?
pawn Код:
#define COLOR_RED 0xAA3333AA
Loading it from DB:
pawn Код:
cache_get_field_content(i, "Colour", Data), TeamInfo[teamid][tColour] = Data;
pawn Код:
`Colour` = %x", TeamInfo[teamid][tColour] );
And is the Colour field in DB supposed to be varchar?