09.05.2011, 14:38
I do not know why people seem to think all the time that colors are strings, because they are not. Colors are just numbers. A little more into depth: Wanna know why using -1 as color gives you white? Contrary to popular believe, it is not the 'default' color, but white (well, technically that's the default color, but if the SA-MP team decides to change it to something else, it won't be anymore). -1 equals 0xFFFFFFFF in hexadecimal notation (try it on a calculator), which - as you may know - is white.
So use %d instead of %s in your format.
Edit: nvm, didn't read it well. How did you define your 'color' variable?
So use %d instead of %s in your format.
Edit: nvm, didn't read it well. How did you define your 'color' variable?