CoolisTheName007

Untitled

Jan 11th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function login(rl)
  2. local username,password
  3. repeat
  4. term.setCursorPos(3, 7)
  5. print([[Username: |]])
  6. term.setCursorPos(3, 8)
  7. print([[Password: |]])
  8.  
  9. term.setCursorPos(12, 7)
  10. username = read()
  11. term.setCursorPos(12, 8)
  12. password = read([[x]])
  13. term.setCursorPos(3, 9)
  14. print([[need to change? y for yes, n for no]])
  15. term.setCursorPos(3, 10)
  16. local change = read()
  17. until change == [[n]]
  18. print(username) --nil
  19. print(password) --nil
  20. end
Advertisement
Add Comment
Please, Sign In to add comment