02.01.2013, 23:15
So, when a player sets his colour, this happens:
Now the colour works and is viewable on the map perfectly.
Then, it gets saved on disconnect:
And on player loading, this happens:
And after that function, the player marker shows up in complete black. How do I manage to fix this?
pawn Код:
PlayerInfo[playerid][pIconColour] = 0xE85A7AFF;
Then, it gets saved on disconnect:
pawn Код:
dini_Set(file, "pIconColour", PlayerInfo[playerid][pIconColour]);
pawn Код:
format(PlayerInfo[playerid][pIconColour], 15, "%x", dini_Get(file, "pIconColour"));
SetPlayerColor(playerid, PlayerInfo[playerid][pIconColour]);