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
#2

anyone? 24hours
Reply
#3

This ?

pawn Код:
print(COLOR);
Reply
#4

hmm, it's 0xFF0000C7 i really don't know much about hexadecimal
Reply
#5

anyone?
8chars
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)