I need some help...
I am trying to build/use code library. I am trying to reduce the number of lines I have to scroll through to fix and issue by being a stand alone code. As of now, I am getting an error.
Attached, is the code I have been testing and a screen shot of the error.
Your help would be GREAT!!!!
Test.lua
Code: Select all
-- VECTRIC LUA SCRIPT
-- require("mobdebug").start()
-- =*********************************************=
function main(script_path)
local tl = require(script_path)
local job = VectricJob()
if not job.Exists then
DisplayMessageBox("Error: No job loaded")
return false ;
end
DisplayMessageBox(tl.Jim)
return true
end
-- =============== End ===============================
Code: Select all
-- VECTRIC LUA SCRIPT
function tool
-- =================================
tool.james = "{1,4,6,2,3,5}"
-- =================================
tool.bob = function(a,b); local c = 0; c=a+b; return c; end
-- =================================
tool.jim = "Jim Anderson"
-- =================================
return tool
end