Forum

> > CS2D > Scripts > Admin Lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Admin Lua

6 replies
To the start Previous 1 Next To the start

old Admin Lua

Spook MQ Hacker
BANNED Off Offline

Quote
Guys There is Wrong with my lua

Spoiler >


1
LUA ERROR: sys/lua/asd.lua:68: 'end' expected (to close 'function' at line 45) near '<eof>'

AHHH! there is an ERROR

old Re: Admin Lua

DannyDeth
User Off Offline

Quote
It means you are missing an 'end' statement. Just add an end on line 68 and make the function go to a new line.

old Re: Admin Lua

Yates
Reviewer Off Offline

Quote
Add an end at the.. Yea, end of this script.

old Re: Admin Lua

Apache uwu
User Off Offline

Quote
Not to be offtopic, however there are issues copying and pasting code into the website. Causing it to be indented incorrectly.

More >


Basically another end fixed it. Tabbed it up

old Re: Admin Lua

DC
Admin Off Offline

Quote
at least copy&paste from notepad++ or the normal windows text editor works fine (using firefox). so I don't think that the website is the reason.

old Re: Admin Lua

Apache uwu
User Off Offline

Quote
No I mean from the website back into itself.

Try it, copy my code from inside the more tag and paste it, click preview. It's all UN-tabbed.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview