Posted 10 June 2012 - 01:34 AM
I am trying to create a turtle that can receive commands from afar wirelessly, but when I run the receive script I get this:
bios:206: [string "receive"]:3:
'then' expected
My code:
rednet.open("right")
id, msg = rednet.receive()
if msg = "cloak" then
print(Received)
shell.run("cloak")
rednet.close("right")
os.reboot()
end
bios:206: [string "receive"]:3:
'then' expected
My code:
rednet.open("right")
id, msg = rednet.receive()
if msg = "cloak" then
print(Received)
shell.run("cloak")
rednet.close("right")
os.reboot()
end