Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = os.getComputerID()
- local valasz = true
- local szamol = 1
- rednet.close()
- rednet.open("back")
- print("send1")
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- while valasz do
- rednet.send(8 , id)
- senderId, message = rednet.receive(1)
- clear()
- print("proba: ", szamol)
- szamol = szamol + 1
- rs.setOutput("bottom", true)
- if id == message then
- rs.setOutput("bottom", false)
- rs.setOutput("top", true)
- print("visszaigazolva!") sleep(.5)
- rs.setOutput("top", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement