That the problematic code:
Spoiler
That's the function i want to call with the parameter
IT IS OUTSIDE THE MAIN FILE
That's the function i want to call with the parameter
IT IS OUTSIDE THE MAIN FILE
function layout.loginBox( topRow )
local box = {"+-------------NEW------------+", "+------------LOGIN-----------+", "+----------DEPOSIT----------+", "+---------- WITHDRAW----------+"}
term.setCursorPos(10, 6)
print( box[topRow] )
--write("+------------LOGIN-----------+")
term.setCursorPos(10, 11)
write("+----------------------------+")
local x = 10
local y = 7
for i = 1, 4 do
term.setCursorPos(x, y)
write("|")
y = y + 1
end
x = x + 29
y = 7
for i = 1, 4 do
term.setCursorPos(x, y)
write("|")
y = y + 1
end
end
That's the line of code that ask for this functionlocal function login() local program = "Login Screen" layout.mainScreen( program ) layout.loginName() layout.loginPassword() layout.loginBox()--- the rest is useless for that question












