Posted 28 October 2013 - 06:35 AM
I found how to get users input to a rednet. api and i have a problem, i need to user inputs insted of one (id and message). This is the code that jay5674 wrote
if anyone could either tell me or point me in the right direction it would be much apprechiated :)/>.
EDIT: i just tried this and it failed :angry:/>
P.S sorry for bad spelling.
Spoiler
write("Enter Message: ")
input = read()
rednet.open(side)
rednet.send(id, input)
rednet.close(side)
EDIT: i just tried this and it failed :angry:/>
Spoiler
function partA()
shell.run("clear")
print("ID:")
inputA=read()
if inputA==("/") then --To move to next part when done
partB()
else
A=inputA
end
end
function partB()
shell.run("clear")
print("message:")
inputB=read()
if inputB==("/") then
rednetCode()
else
print("Enter /")
end
end
function rednetCode()
rednet.close("top")
rednet.open("top")
rednet.send(inputA,inputB)
end
inputA()
P.S sorry for bad spelling.