09.05.2011, 14:00
I'm working on a simple script, but somehow I've got a bug or problem I've never seen before.
This piece of code will show the messagenumber with the default color, it doesn't matter what color is.
e.g color = b(blue), messageNumber = 2.
The GameText will not show the color, just the integer 2.
I tried to debug it, but that shows the correct string: "~b~2".
pawn Код:
format(string, sizeof(string), "~%s~%i", color, messageNumber);
print(string);
GameTextForAll(string, 1000, 4);
e.g color = b(blue), messageNumber = 2.
The GameText will not show the color, just the integer 2.
I tried to debug it, but that shows the correct string: "~b~2".