Weird Code Error
Posted: Sat Jan 17, 2015 11:55 am
Okay, I'm trying to work on a mod, but constantly getting errors.
Error: "__[modname]__\control.lua:18:'then' expected near '='."
And my code is, on the 18th line, with before & after.
Yes, I don't have anything before the if statement.
Error: "__[modname]__\control.lua:18:'then' expected near '='."
And my code is, on the 18th line, with before & after.
Code: Select all
if game.peacefulmode = true then
game.showmessagedialog{text={"Peaceful mode enabled, have fun with infinite resources!"}}