Posted 20 August 2012 - 03:21 PM
So i built this multi user login and there is something wrong with my if statements because they keep returning errors and i cant seem to fix it.. it says the error is at line 30 (eof) which is where the first if statement is
os.pullEvent = os.pullEventRaw term.clear() term.setCursorPos(1,1) user = "" pass = "" textutils.slowPrint ("Welcome to local pc: #0") textutils.slowPrint ("Please log in.") textutils.slowWrite ("Username: ") user = read() textutils.slowWrite ("Password: ") pass = read("*") textutils.slowWrite ("Logging in") sleep(1) write "." sleep(.8) write "." sleep(.6) write "." sleep(.4) write "." sleep(.2) write "." term.clear() term.setCursorPos(1,1) if user == "Caleb" or "caleb" or "Cowman" or "cowman" and pass == "socks321" then textutils.slowWrite("Welcome back Caleb!\n") shell.run("time") shell.setDir("/users/caleb") end else if user == "Surf" or "surf" or "surfcash" or "Surfcash" and pass == "password" then textutils.slowWrite("Welcome back Colin!\n") shell.run("time") shell.setDir("/users/colin") fs.isReadOnly("/") fs.isReadOnly("/rom") fs.isReadOnly("/users/caleb") end else if user == ("Guest" or "guest") and pass == ("guest" or "password") then textutils.slowWrite("Welcome Guest.User!\n") shell.run("time") shell.setDir("/users/guest") fs.isReadOnly("/") fs.isReadOnly("/rom") fs.isReadOnly("/users/caleb") fs.isReadOnly("/users/colin") end else textutils.slowWrite("Incorrect User or Password.") sleep(3) shell.run("startup") end