SetPlayerColour loading variable problem
#1

So, when a player sets his colour, this happens:

pawn Код:
PlayerInfo[playerid][pIconColour] = 0xE85A7AFF;
Now the colour works and is viewable on the map perfectly.

Then, it gets saved on disconnect:

pawn Код:
dini_Set(file, "pIconColour", PlayerInfo[playerid][pIconColour]);
And on player loading, this happens:

pawn Код:
format(PlayerInfo[playerid][pIconColour], 15, "%x", dini_Get(file, "pIconColour"));
SetPlayerColor(playerid, PlayerInfo[playerid][pIconColour]);
And after that function, the player marker shows up in complete black. How do I manage to fix this?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)