Forum

> > CS2D > Scripts > lua error..
Forums overviewCS2D overview Scripts overviewLog in to reply

English lua error..

8 replies
To the start Previous 1 Next To the start

old lua error..

Lop
BANNED Off Offline

Quote
Hello us

I have again a problem whit my script..

and i have not idea how can i fix it.
this is very bad :((

the lua error is:

sys/lua/server.lua:1: unexpected symbol near 'ï'

the script I am using is:

parse("mp_building_limit \"Turret\" 10")

this is a example script..
and the lua error come by all scripts then i use will -.-

plss help mee.

Thx for helping
Mfg
Lop

Have a nice day!

PS: sry for my bad english :S
and i have reinstall cs2d and dont work every day this lua error.

old Re: lua error..

H-X
User Off Offline

Quote
well this problem can also come with notepad++

old Re: lua error..

HedShot
User Off Offline

Quote
Try it:

1
parse('mp_building_limit "Turret" 20')
It's edit all level turrets.

But it's not true at the walls:
1
2
3
parse('mp_building_limit "Wall I" 20')
parse('mp_building_limit "Wall II" 20')
parse('mp_building_limit "Wall III" 20')

Sorry for my english

old Re: lua error..

D-D3ADxPro
User Off Offline

Quote
Its because its encoded wrong. If you use notepad++, click the encoding settings, then select ANSI or Utf-8 without BOM

old Re: lua error..

Avo
User Off Offline

Quote
user D-D3ADxPro has written
Its because its encoded wrong. If you use notepad++, click the encoding settings, then select ANSI or Utf-8 without BOM

ANSI, UTF-8 won't work.

old Re: lua error..

Apache uwu
User Off Offline

Quote
Try converting the file to ANSI. You might be surprised to see some weird characters at the beginning of the file.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview