Cuberite Forum

Full Version: What's wrong with my code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone find the issue with the code at http://github.com/bearbin/BearHomes-MCS that causes the error:

Code:
Plugins/BearHomes/HandleHomeCommand.lua:186: attempt to concatenate global 'errorMsg' (a nil value)

when i try to do /home delete and

Code:
Plugins/BearHomes/savehandler-inisave.lua:149: bad argument #2 to 'insert' (number expected, got string)

when i try to do anything else?
What happens if you add print(errorMsg)?
I'll try.

Ok, I fixed the issue when you delete the home, but the home list and set problem is still there.
Fixed the code, there were too many things wrong to name them all.