Jump to content

Need help with "end" in prefab file.


Recommended Posts

Whenever I load into a world with my mod, the game tells me this:

[00:00:47]: [string "scripts/mainfunctions.lua"]:160: Error loading file prefabs/widiot
[string "../mods/widiot/scripts/prefabs/widiot.lua"]:108: 'end' expected (to close 'if' at line 100) near '<eof>'

I've tried what I can, but for some reason the game decides that the code at line 56 applies to the rest of the document! This shows up in Notepad++ too. How do I fix this?

widiot.lua

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...