Problem - 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: Problem (
/showthread.php?tid=577717)
Problem -
Jastak - 13.06.2015
Hello, I have a problem with a function, The Function converts a number of base 10 to a number of base 16, This is the Function:
Код:
stock IntToHex(int)
{
new string[11];
format(string, sizeof(string), "0x%06xFF", int >>> 8);
return string;
}
The Problem is what just detected RGB for It not detected the Alpha.
AW: Problem -
Kaliber - 13.06.2015
//Edit: Nah nevermind
//EditІ:
Why not just simple:
PHP код:
stock IntToHex(int)
{
new string[11];
format(string, sizeof(string), "0x%08x",int);
return string;
}
Re: Problem -
Jastak - 13.06.2015
thanks!! +1 reputation for you.