xidiot Posted November 15, 2023 Share Posted November 15, 2023 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 More sharing options...
ClumsyPenny Posted November 15, 2023 Share Posted November 15, 2023 Line 59, you have "else if" instead of "elseif" Link to comment Share on other sites More sharing options...
xidiot Posted November 16, 2023 Author Share Posted November 16, 2023 I tried changing the "else if" to "elseif", but it ended up giving me the exact same error. Link to comment Share on other sites More sharing options...
ClumsyPenny Posted November 16, 2023 Share Posted November 16, 2023 Well, I'm stumped. Are you sure you sent the correct file? The crash log mentions "to close 'if' at line 100" but there's no if in sight anywhere near there. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now