Posted 16 October 2012 - 04:45 AM
EDIT: Code works fine, it was actually because I was trying to update from the server, and since the server was down it returned an error, I apologize.
Well, I have been attempting to make it so that my browser can detect when a
rednet.receive()
has reached 0 on the timeout, since it says that the message, and ID will both be returned as nil when the timeout is reached..
Anyways this is my attempt that I made at first, and well of course if I am here it clearly didn't work out to well xD.
Any help would be appreciated, thanks. :3
Well, I have been attempting to make it so that my browser can detect when a
rednet.receive()
has reached 0 on the timeout, since it says that the message, and ID will both be returned as nil when the timeout is reached..
Anyways this is my attempt that I made at first, and well of course if I am here it clearly didn't work out to well xD.
rednet.send(26, url)
ID, message = rednet.receive(2)
var0 = nil
if message == var0 then
print("Server didn't respond!")
Any help would be appreciated, thanks. :3