TheOddByte, on 02 July 2014 - 08:28 PM, said:
function newID() ... newID = lastID + 1 ... endso you can fix this error by giving the variable in your function another name
function newID() ... new_id = lastID + 1 ... endYou should look into using locals aswell since it's bad to have globals unless you plan on accessing these variables/functions from other files
http://www.lua.org/pil/4.2.html
Not sure but did some changes and works now
Thanks!


Posted by
