I did on the recieving computer.
Basicly i want the recieving computer to send some variables when it gets a rednet signal just to make sure you understand.
The recieving computer uses a to define if reactor is active.
The problem is when you send the variable a you are not sending the actual variable you are sending what the variable equals. So, what the computer receives is what a equaled, but it does not mean that the variable a is available on the receiving (sending program) computer.
There are a few things you can do.
1. Have the sending program only recieve messages from the receivng program, so you know for 100% the message is always a
2. Have something in the message that makes it obvious that variable a is in the message. ex: you could send ("RednetMiner: "..a), and you could then use the string api to get a from the string.
3. This option is the one I would personally do. Make a table and for the first entry make something that is identifiable. For the second entry have the variable. I will put a example of this one below as it is the one I would do.
rednet.send(6,{msgID = "RednetMiner",val = a}) --# sending message to computer 6
id, message = rednet.receive() --# receiving and handling
if id == someID and type(message) == "table" then --# making sure the message is from the right comp and is a table
if message["msgID"] == "RednetMiner" then --# checking to see what the msgID is
a = message["val"]
--# do stuff with a
elseif message["msgID"] == somethingElse then --# if you wanted to send multiple messages you would want multiple values
--# do other stuff
end
end
edit:
Sorry if this completely missed what was wrong… It seems all of my posts that I make after 2 am are off topic… lol