XanderRadio 0 Posted March 3, 2018 Share Posted March 3, 2018 for some reason when i request the server on my network for a modem_message value it gives the previous one. e.g i request the distance it gives me the port. i don't think it's a problem with the code but here it is anyway hope someone can help. Quote Link to post Share on other sites
0 Solution Fingercomp 37 Posted March 4, 2018 Solution Share Posted March 4, 2018 It is a problem with the code. event.pull returns the event name, which is put in the laddress, not its own variable, so the event parameters get shifted by 1. Replace the event.pull line with the following. local evt, laddress, saddress, distance, port, message = event.pull("modem_message") Quote Link to post Share on other sites
for some reason when i request the server on my network for a modem_message value it gives the previous one.
e.g i request the distance it gives me the port.
i don't think it's a problem with the code but here it is anyway hope someone can help.
Link to post
Share on other sites