Working with hex-codes?
#1

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)