Hex Converter
#9

Example code
pawn Код:
new hex,line,AARRGGBB;
while(fread(file,str))
{
    if(str[0] == '#')
    {
        strdel(str,0,1);
        strins(str,"0x",0);
    }
    if(sscanf(str,"x",hex))
    {
        printf("error in line %d", ++line);
        continue;
    }
    AARRGGBB = RGBAToARGB( hex ); // your aarrggbb
}
Reply


Messages In This Thread
Hex Converter - by ranme15 - 26.05.2015, 23:01
Re: Hex Converter - by Jefff - 26.05.2015, 23:23
Re: Hex Converter - by ranme15 - 26.05.2015, 23:40
Re: Hex Converter - by ranme15 - 28.05.2015, 19:06
Re: Hex Converter - by Vince - 28.05.2015, 19:42
Re: Hex Converter - by sammp - 28.05.2015, 19:42
Re: Hex Converter - by ranme15 - 28.05.2015, 19:45
Re: Hex Converter - by sammp - 28.05.2015, 19:55
Re: Hex Converter - by Jefff - 28.05.2015, 20:39

Forum Jump:


Users browsing this thread: 2 Guest(s)