Posted 08 November 2014 - 04:04 AM
Spoiler
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(13,1)
print("Welcome To The Vaults.")
sleep(1)
term.setCursorPos(1,2)
print("--------------------------------------------------")
sleep(1)
term.setCursorPos(1,4)
local input = read("*")
local saves = fs.open("userList","r")
local users = textutils.unserialize(saves.readAll())
saves.close()
print("Signin or Signup?")
local input = read()
if input == "Signin" then
print("Enter Username: ")
local userInput = read()
print("Enter Password: ")
local passInput = read("*")
if users[userInput] == passInput then
print("Welcome back")
redstone.setOutput("left",true)
sleep(2)
redstone.setOutput("left",false)
os.shutdown()
elseif input == "StaffPw" then
term.clear()
term.setCursorPos(11,1)
print("Welcome back, Staff Member")
term.setCursorPos(1,3)
print("--------------------------------------------------")
rs.setOutput("left",true)
sleep(2)
rs.setOutput("left",false)
os.shutdown()
elseif input == "Debugging" then
term.clear()
term.setCursorPos(7,1)
write("Logging Out of the Secure Network")
sleep(0.5)
term.clear()
term.setCursorPos(7,1)
write("Logging Out of the Secure Network.")
sleep(0.5)
term.clear()
term.setCursorPos(7,1)
write("Logging Out of the Secure Network..")
sleep(0.5)
term.clear()
term.setCursorPos(7,1)
write("Logging Out of the Secure Network...")
sleep(1)
term.setCursorPos(1,2)
print("--------------------------------------------------")
sleep(0.5)
term.clear()
term.setCursorPos(7,1)
print("Unsecure Debugging System Operational")
term.setCursorPos(1,2)
print("--------------------------------------------------")
sleep(0.5)
error()
else
term.clear()
term.setCursorPos(13,1)
print("This Isn't Your Vault!")
term.setCursorPos(1,2)
print("---------------------------------------------------")
sleep(1)
os.shutdown()
end
else
print("Wrong Username or Password!")
end
elseif input == "Signup" then
print("Enter New Username: ")
local userInput = read()
print("Enter New Password: ")
local passInput = read("*")
users[userInput] = passInput
else
print("Wrong Username or Password. Try again.")
sleep(1)
os.reboot()
local saves = fs.open("userList","w")
saves.writeLine(textutils.serialize(users))
saves.close()
This will just not work. The error message says that an end is expected on line 75, the tells me that the end shouldn't be there with the "eof" thing.
Thank you for helping.
-Billy.