Quote:
Originally Posted by feartonyb
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.