Get rid of the unknown global and local variables, such as var. Get rid of local variables outside any function to prevent code-confusing later. Create pseudo-constant variables, that wont be changed (before creating new constant have to check the list of all constants Lua is using to prevent overwriting suficient constants, such as _G or _VERSION.
Get rid of the unknown global and local variables, such as
var
. Get rid oflocal
variables outside any function to prevent code-confusing later. Create pseudo-constant variables, that wont be changed (before creating new constant have to check the list of all constants Lua is using to prevent overwriting suficient constants, such as_G
or_VERSION
.