19.07.2010, 11:40
If you understood a Hex you'd know that there's 4 values:
Red, Green, Blue, Alpha
What you should do is use sscanf:
And you then have the values that the user imputted, for example:
Then use the function (somewhere on the forums) RGBAToHex, which should convert it into Hex.
Then save the Hex to a file.
pawn Код:
0xRRGGBBAA
What you should do is use sscanf:
pawn Код:
if(!sscanf(params, "ddd", r, g, b))
Код:
/chatcolour 0 30 255
Then save the Hex to a file.