ph1823

Untitled

Mar 28th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local printer = peripheral.wrap("left")
  2.  
  3. local success = printer.newPage()
  4.  
  5. if success then
  6. printer.write("Hello world!")
  7. printer.endPage()
  8.  
  9. print("Page was printed successfully.")
  10. else
  11. error("Page could not be created. Check if there is any paper and ink in the printer.")
  12. end
Advertisement
Add Comment
Please, Sign In to add comment