Posted 11 October 2012 - 07:19 PM
Hey.
I don't understand what i wrong with my code, I don't get any errors but nothing happens. It should make some redstone on the back of the computer light up, but it doesn't. it is also using a lock.
the transmitters code:
the receivers code:
Please help :P/>/>
I don't understand what i wrong with my code, I don't get any errors but nothing happens. It should make some redstone on the back of the computer light up, but it doesn't. it is also using a lock.
the transmitters code:
while true do
term.clear()
term.setCursorPos(1, 1)
print("Please Enter Password:")
input = read("*")
if input == "open" then
rednet.open("left")
rednet.send(8, "open")
end
if input == "close" then
rednet.open("left")
rednet.send(9, "close")
end
end
the receivers code:
rednet.open("left")
while true do
a, b = rednet.receive()
if b == "open" then
redstone.setOutput("back", true)
end
if b == "close" then
redstone.setOutput("back", false)
end
end
Please help :P/>/>