Posted 11 May 2017 - 12:23 AM
Hi,
below is the simplified code that is causing the issue (I don't believe you need any more code than this, there is a lot of it!)
main:
GUI:
The error I get seems to occur on the compiler pass, since no print statements in either the GUI or main files get printed before the error is thrown.
The exact error I get is: "main:29: attempt to call index ? (a nil value)" (In the minified example I've given you the one an only line in the main function is the one that throws the error)
Any idea how to fix this? I don't know what is wrong with the way I've done this..
(Yes both main and GUI are in the exact same directory on the computer)
below is the simplified code that is causing the issue (I don't believe you need any more code than this, there is a lot of it!)
main:
os.loadAPI("GUI")
function main()
--Lots of code
local username, password = GUI.runLogin("")
end
main()
GUI:
--Some code
function runLogin(msg)
--Lots of code
return username, password
end
The error I get seems to occur on the compiler pass, since no print statements in either the GUI or main files get printed before the error is thrown.
The exact error I get is: "main:29: attempt to call index ? (a nil value)" (In the minified example I've given you the one an only line in the main function is the one that throws the error)
Any idea how to fix this? I don't know what is wrong with the way I've done this..
(Yes both main and GUI are in the exact same directory on the computer)
Edited on 10 May 2017 - 10:26 PM