Using GameTextForAll with a string doesn't work.
#4

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?
Reply


Messages In This Thread
Using GameTextForAll with a string doesn't work. - by Biesmen - 09.05.2011, 14:00
Re: Using GameTextForAll with a string doesn't work. - by Laronic - 09.05.2011, 14:31
Re: Using GameTextForAll with a string doesn't work. - by Biesmen - 09.05.2011, 14:33
Re: Using GameTextForAll with a string doesn't work. - by Vince - 09.05.2011, 14:38
Re: Using GameTextForAll with a string doesn't work. - by Laronic - 09.05.2011, 14:47
Re: Using GameTextForAll with a string doesn't work. - by Biesmen - 09.05.2011, 14:50
Re: Using GameTextForAll with a string doesn't work. - by Vince - 09.05.2011, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)