Forum

> > CS2D > Scripts > Text color bug
Forums overviewCS2D overview Scripts overviewLog in to reply

English Text color bug

4 replies
To the start Previous 1 Next To the start

old Text color bug

archmage
User Off Offline

Quote
I have found a problem with changing the color of text (hudtxt, msg). I am on Linux and using the latest version of CS2D. Using the copyright symbol followed by 9 integers does not set the color, but adds it to the string with a strange character in front.
http://img94.imageshack.us/img94/7345/dedust00000.jpg

I called the function like so:
1
msg2(id, "©000255000A Carpet Bomb was added.")
Perhaps taking the color as a number would work?
1
message2(id, 0x00ff00, "A Carpet Bomb was added.")
edited 1×, last 28.08.11 08:06:08 pm

old Re: Text color bug

Apache uwu
User Off Offline

Quote
Try this.

1
msg2(id, string.char(169).."000255000A Carpet Bomb was added.")

EDIT: Also, when you save the text file make sure it's uft-8 not unicode or other encoding.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview