SA-MP Forums Archive
print hexadecimal - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: print hexadecimal (/showthread.php?tid=182765)



print hexadecimal - armyoftwo - 12.10.2010

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.


Re: print hexadecimal - armyoftwo - 13.10.2010

anyone? 24hours


Re: print hexadecimal - kurta999 - 13.10.2010

This ?

pawn Код:
print(COLOR);



Re: print hexadecimal - armyoftwo - 16.10.2010

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


Re: print hexadecimal - armyoftwo - 24.10.2010

anyone?
8chars