Problem
#1

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.
Reply
#2

//Edit: Nah nevermind
//EditІ:

Why not just simple:

PHP код:
stock IntToHex(int)
{
    new 
string[11];
    
format(stringsizeof(string), "0x%08x",int);
    return 
string;

Reply
#3

thanks!! +1 reputation for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)