negative Integer to 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: negative Integer to hexadecimal (
/showthread.php?tid=94217)
negative Integer to hexadecimal -
PoWerZ - 28.08.2009
I'm trying to convert or at least to display in format a integer as hexadecimal,
well when i try to convert a regular positive number it seem works fine,
but when it's negative Integer to hexadecimal in pawno it displays !$& signs and etc...
Any solution?
Re: negative Integer to hexadecimal -
ilikepie2221 - 28.08.2009
Why would you need to convert negative integers to hexadecimal?
Re: negative Integer to hexadecimal -
PoWerZ - 28.08.2009
Quote:
Originally Posted by ilikepie2221
Why would you need to convert negative integers to hexadecimal?
|
to write them into a file.
Re: negative Integer to hexadecimal -
Correlli - 29.08.2009
Are you sure you're using the correct type of format? Like %d is for integer, %x is for hexadecimal.