Need Help With GetPlayerColor
#4

Okay, but read my post again. You try to set the color as hex by retrieving the colour which returns a readable number. Hex is a number as well so it's like you do this:
pawn Код:
SetPlayerColor(playerid, GetPlayerColor(playerid));
which I don't see any reason for it.

With sscanf, you can use "x" specifier.
pawn Код:
new
    colour;

sscanf("0x00FF00FF", "x", colour); // the first argument can be a string you declared.
Reply


Messages In This Thread
Need Help With GetPlayerColor - by Protonix - 25.04.2014, 14:40
Re: Need Help With GetPlayerColor - by Konstantinos - 25.04.2014, 14:43
Re: Need Help With GetPlayerColor - by Protonix - 25.04.2014, 14:46
Re: Need Help With GetPlayerColor - by Konstantinos - 25.04.2014, 14:56
Re: Need Help With GetPlayerColor - by Protonix - 25.04.2014, 15:04
Re: Need Help With GetPlayerColor - by Konstantinos - 25.04.2014, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)