I'm using these files in my gaming server, and every time I add a new player model, I get

this error

[ERROR] lua/autorun/server/fastdlskins.lua:938: '<eof>' expected near 'end' 1. unknown - lua/autorun/server/fastdlskins.lua:0 

I also get a similar error when I add an add-on to a different file

img

 [ERROR] lua/autorun/server/workshopitems.lua:55: '<eof>' expected near 'end' 1. unknown - lua/autorun/server/workshopitems.lua:0 

I usually just have to put an 'end' after the code, but I don't see what else I'm required to do. I don't have any loops running (I think), so I'm not closing any of those out. Not sure what to do.

5

1 Answer

As Egor said, remove the extra end at the end of the files.

end is only used to close blocks for functions and loops, like } in C-like languages. The end at the file is not closing anything, and is thus invalid syntax.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.