Posted 12 November 2013 - 02:50 PM
Howdy all!
iv been writing a simple maseenger program between 2 coms and iv run into a bug. using a server to send data between the coms works fine, but i use a loop to check for incoming messages like so
a, b, = rednet.recieve(3)
if b ~= "" then
print( b )
end
now i recieve the message fine and it prints, but the "if string is blank" argument is not bieng ignored if no message is sent, printing a blank line in a loop. not a terrible bug but it does move the screen down and eventually the printed messages are lost to the upper part of the screen because the blank b bieng printed. any ideas if rednet.send() is sending somthing other then a blank string?
iv been writing a simple maseenger program between 2 coms and iv run into a bug. using a server to send data between the coms works fine, but i use a loop to check for incoming messages like so
a, b, = rednet.recieve(3)
if b ~= "" then
print( b )
end
now i recieve the message fine and it prints, but the "if string is blank" argument is not bieng ignored if no message is sent, printing a blank line in a loop. not a terrible bug but it does move the screen down and eventually the printed messages are lost to the upper part of the screen because the blank b bieng printed. any ideas if rednet.send() is sending somthing other then a blank string?
Edited on 12 November 2013 - 01:54 PM