Working with hex-codes? - 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: Working with hex-codes? (
/showthread.php?tid=246484)
Working with hex-codes? -
Danny - 04.04.2011
Hello,
For my faction system, i need to save hex colors. But in what variable i have to store it? If i use a string, the compiler gives me an error. But if i try to use a normal variable, i will get a weird -13546863 ... number. So,, what variable i can use for Hex?
Greetz,
Danny
Re: Working with hex-codes? -
Joe Staff - 04.04.2011
Using normal integers is fine. In pawn, hexadecimal and integers are read as the same thing. So even though it's saving as an odd number, it will still be the same color