Posted 19 September 2014 - 06:53 PM
I made a program that uses pcalls (because why not?) but when i try to get the program working, i just get the error on the title.
Snippet of the code that i think needs a fix:
Note: getFileInfo is a function from a api i'm working on
Snippet of the code that i think needs a fix:
function main()
if not args[1] == nil then
if args[1] == "test" then
print("Hello world")
print(getFileInfo(var1, arg[2]))
end
end
end
local ok, err = pcall(main())
if not ok then
error(err) --Bunu yapmamda amaç neydi?
else
print("Sorunsuz!") --Buydu oke
end
Note: getFileInfo is a function from a api i'm working on
Edited on 19 September 2014 - 04:53 PM