HEX TO INT. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HEX TO INT. (
/showthread.php?tid=398489)
HEX TO INT. -
budelis - 09.12.2012
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?
Re: HEX TO INT. -
Vince - 09.12.2012
Hexadecimal values are already integers. It's just a different way of writing. No conversion needed.