Posted 29 August 2012 - 06:08 PM
Playing on a Tekkit 3.1.2 multiplayer server, running ComputerCraft 1.33, I am trying to create a simple but effective wireless turtle control, using the following code, all written in the edit program built into the devices they are run on:
Turtle:
Note: Same error occurs with or without spaces within if functions.
Computer:
(Modem already active)
I run the Turtle, then the Computer program, but the Computer will not send the message.
Turtle:
rednet.open("right")
id, message = rednet.receive()
if message == "intro" then
if rednet.send(id, "Command:") == false then
print("Error!")
end
else
if rednet.send(id, shell.run(message)) == false then
print("Error!")
end
end
Note: Same error occurs with or without spaces within if functions.
Computer:
(Modem already active)
if rednet.broadcast("intro") == false then
print("Error!")
end
id, message = rednet.receive()
print(id, ": ", message)
I run the Turtle, then the Computer program, but the Computer will not send the message.