English lua error..

8 replies
Goto Page
To the start Previous 1 Next To the start
01.08.13 04:54:22 pm
Up
Lop
BANNED
Offline Off
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.
01.08.13 05:00:14 pm
Up
Avo
User
Offline Off
Do you use ANSI coding?
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
02.08.13 11:03:45 am
Up
H-X
User
Offline Off
well this problem can also come with notepad++
Maths is the most magical place where you buy 70 watermelons and no one cares about it.
02.08.13 03:09:44 pm
Up
Lop
BANNED
Offline Off
i use notepad++
02.08.13 04:23:46 pm
Up
HedShot
User
Offline Off
Try it:

Code:
1
parse('mp_building_limit "Turret" 20')

It's edit all level turrets.

But it's not true at the walls:
Code:
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
02.08.13 06:50:25 pm
Up
D-D3ADxPro
User
Offline Off
Its because its encoded wrong. If you use notepad++, click the encoding settings, then select ANSI or Utf-8 without BOM
Revisiting after 4 years, and boy how much cs2d really changed.
02.08.13 06:51:51 pm
Up
Avo
User
Offline Off
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.
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
02.08.13 10:16:16 pm
Up
Apache uwu
User
Offline Off
Try converting the file to ANSI. You might be surprised to see some weird characters at the beginning of the file.
02.08.13 10:18:29 pm
Up
Lop
BANNED
Offline Off
It's work!...

ty @ all

have a nice day!
To the start Previous 1 Next To the start