Posted 22 October 2012 - 08:00 AM
Alright, so me and my friend have a factory, and he asked me to set up a gate that he can control by wireless from his office in said factory. But while coding his office computer I couldn't get the darn thing to send the message. All I get is
rednet:350: string expected
I know what it means, I just don't know why. I am trying to send a variable over to the computer that handles opening the gate, but it keeps returning that message. I defined the variable so I dunno.
Heres my code:
Any help?
EDIT: There is code before this, thats why it is 350 and why I have "Command" in there
rednet:350: string expected
I know what it means, I just don't know why. I am trying to send a variable over to the computer that handles opening the gate, but it keeps returning that message. I defined the variable so I dunno.
Heres my code:
X = 1
if Command == "Open" then
term.clear()
write("Opening Gate")
rednet.open("left")
rednet.broadcast(X)
sleep(.3)
write(".")
sleep(.3)
write(".")
sleep(.3)
print(".")
sleep(1)
Menu()
end
Any help?
EDIT: There is code before this, thats why it is 350 and why I have "Command" in there