SHOW:
|
|
- or go back to the newest paste.
1 | function order(item, quantity) | |
2 | orderNoWait(item,quantity) | |
3 | sender = rednet.receive("output",1) | |
4 | if not sender then | |
5 | if printers.available() then | |
6 | printers.printPage("Error","Das ist ein Fehler") | |
7 | end | |
8 | end | |
9 | end | |
10 | ||
11 | function orderNoWait(item, quantity) | |
12 | rednet.broadcast(item..","..quantity,"order") | |
13 | end |