Forum

> > CS2D > Scripts > Lua scripts error
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua scripts error

1 reply
To the start Previous 1 Next To the start

old Lua scripts error

D-D3ADxPro
User Off Offline

Quote
I tried this lua code. (Part of my script)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
paint={paint.bmp",1} --- Line 184
mancha1ct={mancha1ct.bmp",1}
mancha1t={mancha1t.bmp",1}
mancha2ct={mancha2ct.bmp",1}
mancha2t={mancha2t.bmp",1}
mancha3ct={mancha3ct.bmp",1}
mancha3t={mancha3t.bmp",1}
mancha4ct={mancha4ct.bmp",1}
mancha4t={mancha4t.bmp",1}
manchadodeazul1={manchadodeazul1.bmp",1}
manchadodeazul2={manchadodeazul2.bmp",1}
manchadodeazul3={manchadodeazul3.bmp",1}
manchadodeazul4={manchadodeazul4.bmp",1}
manchadoderojo1={manchadoderojo1.bmp",1}
manchadoderojo2={manchadoderojo2.bmp",1}
manchadoderojo3={manchadoderojo3.bmp",1}
manchadoderojo4={manchadoderojo4.bmp",1}

But in console, it shows this error
1
LUA ERROR: maps/Pb_de_dust_night.lua:184: unfinished string near '",1}'

Any one know how to fix this?
--------------------------------------------------------------------------------------------------------------

While transferring sounds, I ran to this error:
1
NET: Can't send resource file 'sfx/misc/win3.ogg' (exceeds client size limits)

Does anyone know how to aviod this kind of error?

old Re: Lua scripts error

DC
Admin Off Offline

Quote
First problem: you are ending your strings with " but you are not starting them with "!
1
paint={paint.bmp",1}
it should be
1
paint={"paint.bmp",1}

Second problem: Use smaller files (best solution to make it work for most players)
or change the (client) settings:
• options
• net
• download files: All

Note that all players playing on your server have to change their settings to receive all large files (unless they didn't do that already).
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview