Posted 23 November 2012 - 11:22 AM
Hello, my code is as follows
It says <eof> at line 47
I can't figure out what this means!
user = "icecube45"
user1 = "sun1raven"
user2 = "AdmKennedy"
password = "cubeice45"
password1 = "tomcat5"
password2 = "flyer42"
function menu()
term.clear()
term.setCursorPos(1,1)
print("Control Panel V1.0")
print("1: Toggle Dungeon")
print("2: Toggle Quarry")
print("3: Toggle Logo")
print("4: Status Report")
print("5: Log Out")
print("What Would You Like To Do?")
input = read()
if input == "1" or input == "2" or input == "3" or input == "4" then
print("Under Construction")
os.sleep(2)
return menu()
elseif input == "5" then
print("Thank You for Using The Control Panel")
os.sleep(2)
os.rebbot()
end
end
print("FactoryOS V2.0")
print("Choose A User:")
usercheck = read()
if usercheck == user or usercheck == user1 or usercheck == user2 then
term.clear()
term.setCursorPos(1,1)
print(usercheck.."'s Password:")
passcheck = read()
if passcheck == password or passcheck == password1 or passcheck == password2 then
term.clear()
term.setCursorPos(1,1)
menu()
end
else
print("Invalid Password")
os.reboot()
end
end
else
print("Invalid User")
os.reboot()
end
end
It says <eof> at line 47
I can't figure out what this means!