Forum

> > CS2D > Scripts > lua error..
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch lua error..

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt lua error..

Lop
BANNED Off Offline

Zitieren
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.

alt Re: lua error..

HedShot
User Off Offline

Zitieren
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

alt Re: lua error..

D-D3ADxPro
User Off Offline

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

alt Re: lua error..

Avo
User Off Offline

Zitieren
user D-D3ADxPro hat geschrieben
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.

alt Re: lua error..

Apache uwu
User Off Offline

Zitieren
Try converting the file to ANSI. You might be surprised to see some weird characters at the beginning of the file.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht