color: int to string (hex)
#5

Quote:
Originally Posted by feartonyb
View Post
I made stock for you:

Code:
stock GetHexColor( colorcode[ ] )
{
    new ColorString[128]:
    for(new i = 0; i < 11; i++ )
    {
        if ( colorcode[ i ] == '0x' )
        colorcode[ i ] = ' ';
    }
    return format(ColorString,sizeof(ColorString),"{%s}nice color",colorcode );
}
I need convert integer to hex code. Your function work with text and delete "0x" from text. This not convert int to hex.
Reply


Messages In This Thread
color: int to string (hex) - by ATomas - 12.06.2013, 13:37
Re: color: int to string (hex) - by OrMisicL - 12.06.2013, 13:59
Re: color: int to string (hex) - by feartonyb - 12.06.2013, 13:59
Re: color: int to string (hex) - by ATomas - 13.06.2013, 07:55
Re: color: int to string (hex) - by ATomas - 13.06.2013, 07:58
Re: color: int to string (hex) - by ATomas - 13.06.2013, 09:49
Re: color: int to string (hex) - by Vince - 13.06.2013, 09:51
Re: color: int to string (hex) - by ATomas - 13.06.2013, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)