Advertisement
Guest User

Untitled

a guest
Dec 8th, 2023
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. repeat
  2. print("\n\n\nTapez une touche pour continuer")
  3. io.read() <-- what is this?
  4. term.clear()
  5. print("==========Menu==========\n1) Afficher les ids des satellites\n2) Ajouter un id de satellite\n3) Quitter")
  6. local choice = term.read() <-- THIS should be your io.read(), not above.
  7. local validChoices = {"1", "2", "3"}
  8. if isValidChoice(choice, validChoices) then
  9. if choice == "1" then
  10. display()
  11. os.sleep(0.1)
  12. end
  13. end
  14. until choice == "3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement