What's wrong with my code? - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html) +--- Thread: What's wrong with my code? (/thread-846.html) |
What's wrong with my code? - bearbin - 04-05-2013 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? RE: What's wrong with my code? - NiLSPACE - 04-05-2013 What happens if you add print(errorMsg)? RE: What's wrong with my code? - bearbin - 04-05-2013 I'll try. Ok, I fixed the issue when you delete the home, but the home list and set problem is still there. RE: What's wrong with my code? - bearbin - 04-06-2013 Fixed the code, there were too many things wrong to name them all. |