Posted 02 June 2014 - 03:00 AM
Title: <eof> expected and end needed
This really weird thing is happening to me and I don't know why.
ALSO: Yes, I did read the "Read This Post Before Asking Questions"
IMGUR ALBUM
Full program code(Any help debugging this code would be a huge help):
Thanks for your help in advance.
This really weird thing is happening to me and I don't know why.
ALSO: Yes, I did read the "Read This Post Before Asking Questions"
IMGUR ALBUM
Full program code(Any help debugging this code would be a huge help):
term.clear()
term.setCursorPos(2,1)
print("--WELCOME TO SiliCo (TM) TERMINAL VT5 USER INTERFACE--")
term.setCursorPos(2,3)
print("-CODE OPTIONS-")
term.setCursorPos(4,4)
print("[Open Door] 1")
term.setCursorPos(4,5)
print("[Close Door] 2")
term.setCursorPos(4,6)
print("[Shutdown Terminal] 3")
term.setCursorPos(2,8)
write("[Code] ")
input = read()
if input == '1' then
redstone.setOutput("back", true)
print("[Door Opened")
sleep(1)
term.clear()
shell.run("startup")
elseif input == '2' then
redstone.setOutput("back", false)
print("Door Closed")
sleep(1)
term.clear()
shell.run("startup")
elseif input == '3' then
term.setCursorPos(2,11)
print("-TERMINAL SHUTDOWN REQUEST DETECTED-")
term.setCursorPos(2,13)
print("Are You Sure You Want To Shutdown This Terminal?")
term.setCursorPos(4,14)
print("[Yes] 4")
term.setCursorPos(4,15)
print("[No] 5")
term.setCursorPos(2,17)
write("[Code] ")
input = read()
if input == '4' then
term.setCursorPos(2,25)
print("-TERMINAL SHUTTING DOWN-")
sleep(0.5)
term.setCursorPos(2,27)
print("-THANK YOU FOR CHOOSING SiliCo (TM)-")
sleep(1)
os.shutdown()
end
term.clear()
shell.run("startup")
elseif input == '5' then
term.setCursorPos(2,25)
print("Shutdown Terminated")
term.setCursorPos(2,27)
print("Returning")
sleep(2)
term.clear()
shell.run("startup")
else
term.setCursorPos(2,25)
print("Invalid Input")
sleep(2)
term.clear()
shell.run("startup")
else
term.setCursorPos(2,25)
print("Invalid Input")
sleep(2)
term.clear()
shell.run("startup")
Thanks for your help in advance.