Forum

> > CS2D > Scripts > Text color bug
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Text color bug

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Text color bug

archmage
User Off Offline

Zitieren
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.")
1× editiert, zuletzt 28.08.11 20:06:08

alt Re: Text color bug

Apache uwu
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht