Forum

> > CS2D > General > The © Error [Solved]
Forums overviewCS2D overviewGeneral overviewLog in to reply

English The © Error [Solved]

4 replies
To the start Previous 1 Next To the start

old The © Error [Solved]

Alex_Aaa789
User Off Offline

Quote
In lua there are some ©number, I know it is color code.
But if I save it will say 'There is a Unicode in the text' if I cancel the © will change to cnumber or ?number,
and if I save it as unicode text and host, it will say:
1
LUA ERROR: sys/lua/RP_Aaa789/infmoney.lua:1: unexpected symbol near 'y'
That means don't support unicode text.
Is there any way to fix it? Thanks
edited 1×, last 20.07.10 12:15:53 pm

old Re: The © Error [Solved]

Klin
User Off Offline

Quote
1
2
copyright=string.char(169)
parse("msg "..copyright.."255255255 Hello world")

MFG
Klin

old Re: The © Error [Solved]

DC
Admin Off Offline

Quote
..or just change the encoding/charset settings of the program you use to edit your Lua scripts to ANSI/ASCII. do NOT use UTF/Unicode or something like this.

I recommend to use Notepad++
http://notepad-plus.sourceforge.net/ - it is a great editor and should work with the default settings.

old Re: The © Error [Solved]

Crazyx
User Off Offline

Quote
...or even another awesome Lua scripting program called > Komodo Edit (it also supports Perl, Javacsript, etc.).
If I'm not wrong it was Lee, one of the most experienced CS2D scripters (who maintains the Lua Helpdesk @ CS2D.org) that recommended it and uses it).
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview