NekoTiki

Untitled

Oct 1st, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local ProgramName = "aff"
  2. crashcount = 0
  3.  
  4. function crash()
  5. term.setTextColor(colors.yellow)
  6. write("Le programme a crash: ")
  7. term.setTextColor(colors.red)
  8. write(crashcount)
  9. term.setTextColor(colors.yellow)
  10. print(" fois.")
  11. end
  12.  
  13. while true do
  14. term.clear()
  15. term.setCursorPos(1,1)
  16. crash()
  17. term.setTextColor(colors.green)
  18. print("Lancement du Programme ...")
  19. shell.run(ProgramName)
  20. crashcount = crashcount + 1
  21. end
Add Comment
Please, Sign In to add comment