Posted 11 September 2016 - 03:22 PM
I am currently trying to make a program where I can talk to my friends wirelessly. I got the sending thing done but I need help with my receiver.
Here is my receiver code.
What I am trying to do is when you open the program it infinitely loops until the user types end. When I run the code and type end it just stops my computer making it impossible for me to type into it. Any help is appreciated.
Here is my receiver code.
while true do
st = read()
X = true
m = peripheral.wrap("left")
rednet.open("right")
id, message = rednet.receive()
m.setTextScale(1)
m.setCursorPos(1,1)
m.write(message)
if st == "end" then
X = false
end
end
What I am trying to do is when you open the program it infinitely loops until the user types end. When I run the code and type end it just stops my computer making it impossible for me to type into it. Any help is appreciated.