Posted 24 December 2013 - 11:35 AM
My code:
And/ or http://pastebin.com/NCpCJrQm
I am getting the error "bios:337: [string "startup"]:54: '<eof> ' " But i can't seem to find out the reason why? I don't know why it's happening either.
if fs.exists("log") then
space = (fs.getSize("log"))
logtime = (os.time())
correctpassword = "codered"
pin = "0759"
local input = read("*")
write("What is the current situation? ")
if input == (correctpassword) then
print("Comfirming Password")
sleep(1.5)
print("Granted, Security Level 1.0")
term.clear()
redstone.setOutput("right", true)
sleep(0.5)
write("Loading")
sleep(0.3)
write("|")
sleep(0.3)
write("|")
sleep(0.3)
write("|")
sleep(0.3)
write("|")
sleep(0.3)
write("|")
print(" ")
end
term.clear()
print("Opening Security Door")
print("Access Denied")
print("Needed Security Level 2.0")
write("Enter pin: ")
input = read("#")
term.clear()
if input == (pin) then
print("Loading")
sleep(0.2)
write(".")
sleep(0.2)
write(".")
sleep(0.2)
write(".")
sleep("1")
term.clear()
print("Access granted. Security Level 2.0")
print("Security Door opening.")
redstone.setOutput("bottom", true)
sleep(5)
redstone.setOutput("bottom", false)
sleep(60)
os.shutdown()
end
else
write("Access Denied. Your attempt is beening logged...")
local file = fs.open("log", "a")
file.write("Attempt at:"..logtime)
file.close()
print("Attempt Logged.")
print("Log file space:"..space)
sleep(5)
os.shutdown()
end
elseif input == "editit" then
write("Launching editing mode...")
print(" ")
end
And/ or http://pastebin.com/NCpCJrQm
I am getting the error "bios:337: [string "startup"]:54: '<eof> ' " But i can't seem to find out the reason why? I don't know why it's happening either.
Edited on 24 December 2013 - 11:49 AM