07.10.2010, 15:41
(
Последний раз редактировалось DarrenReeder; 07.10.2010 в 16:11.
)
Hello...
I can trying to save my color into the database, then retrieve it again when i login...this is how i load the Color..
The problem is that the color is saving like "FF0000" in the Database, but then wen i use "SetPlayerColor(playerid, orgStats[orgID][color]" The FF0000 which should be RED in Hex...is green...
I think it might either be becuase of the strings or the field type :S anyone can help?
This is how i save it:
This is how i set it:
The Data type in my Mysql Database is a string...
I can trying to save my color into the database, then retrieve it again when i login...this is how i load the Color..
The problem is that the color is saving like "FF0000" in the Database, but then wen i use "SetPlayerColor(playerid, orgStats[orgID][color]" The FF0000 which should be RED in Hex...is green...
I think it might either be becuase of the strings or the field type :S anyone can help?
pawn Код:
mysql_fetch_field_row(orgStats[i][fColor], "Color");
pawn Код:
format(query, sizeof(query), "update organisation SET Color='%s' WHERE ID='%d'",orgStats[i][fColor], i);
mysql_query(query);
pawn Код:
if(sscanf(params, "dh", org, color)) return SendClientMessage(playerid, COLOR_RED, "[USAGE] - /setcolor [orgID] [color in HEX]");
orgStats[org][fColor] = color;