print hexadecimal
#1

I am using this code to print and save the gangzone, but it doesn't print the hexadecimal right!!!
Код:
	printf("%x", COLOR);
    format(string, sizeof(string), "INSERT INTO gangzones (SQLID, MinX, MinY, MaxX, MaxY, COLOR, Owner) VALUES    ('%i', '%f', '%f', '%f', '%f', '%x', '%i')",
    minx,miny,maxx,maxy, COLOR, -1);
    mysql_query(string);
    mysql_query("SELECT MAX(SQLID) FROM gangzones");
    mysql_store_result();
The COLOR prints "!!!!-'"


%x Inserts a number in hexadecimal notation.
Reply


Messages In This Thread
print hexadecimal - by armyoftwo - 12.10.2010, 16:18
Re: print hexadecimal - by armyoftwo - 13.10.2010, 13:13
Re: print hexadecimal - by kurta999 - 13.10.2010, 13:31
Re: print hexadecimal - by armyoftwo - 16.10.2010, 09:09
Re: print hexadecimal - by armyoftwo - 24.10.2010, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)