HEX TO INT.
#1

Hi,

I use sscanf, and i want to do when you write

Код:
/color [code like 0x000000AA]
Код:
new COLORCODE;

if(sscanf(params, "x",COLORCODE ) );
Then save this code to variable, but can i save it like that:

Код:
MYVARIABLE[ playerid ] = COLORCODE
Server will write, that in my variable? or maybe need hex make into int?
Reply
#2

Hexadecimal values are already integers. It's just a different way of writing. No conversion needed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)