Posted 04 May 2012 - 02:40 AM
When i run my program it while not do the while. My Program:
a = 1
write("Port:") – rednet
port = read()
rednet.open(port)
write("Id:") – computer Id
Sip = read()
write("NickName:")
n = read()
while a == 1 do
write("Message:")
m = read()
if m == "exit" then
rednet.send(Sip, n.."Has Exit")
else
rednet.send(Sip, n..":"..m)
end
end
The output is:
Port: – i put j
Id: – i put 22 (I have done a lot of experiments)
NickName: – i put je06
Can any one help?
a = 1
write("Port:") – rednet
port = read()
rednet.open(port)
write("Id:") – computer Id
Sip = read()
write("NickName:")
n = read()
while a == 1 do
write("Message:")
m = read()
if m == "exit" then
rednet.send(Sip, n.."Has Exit")
else
rednet.send(Sip, n..":"..m)
end
end
The output is:
Port: – i put j
Id: – i put 22 (I have done a lot of experiments)
NickName: – i put je06
Can any one help?