28.05.2015, 20:39
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
}