Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPosition(1, 1)
- print("Username:")
- local usrName = read()
- file = fs.open("saves/",,usrName,"r")
- local dataBase = {}
- local line = file.readLine()
- repeat
- table.insert(dataBase, line)
- line = file.readLine()
- until line == nil
- file.close()
- print("password:")
- local usrPass = read()
- if usrPass == dataBase[1] then
- redstone.setOutput("right", true)
- sleep(3)
- redstone.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement