Advertisement
Guest User

Account

a guest
Mar 30th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. shell.run("clear")
  3. term.setCursorPos(45,18)
  4. print("ID: ",os.getComputerID())
  5. term.setCursorPos(1,1)
  6. write("Account: ")
  7. local a = read()
  8. if a == "exit" then
  9. shell.run("clear")
  10. else
  11. write("Passwort: ")
  12. local b = read("*")
  13. shell.run("clear")
  14. print(a.." Account wurde gespeichert")
  15. fs.makeDir("data")
  16. local file = fs.open("data/"..a,"a")
  17. file.writeLine(b)
  18. file.close()
  19. sleep(3)
  20. shell.run("clear")
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement