818 posts
Location
Wherever you want me to be
Posted 11 July 2015 - 04:02 PM
so i was using rednet, and it decided to fail.
i just did a simple rednet.receive(), then it says
lua:1: attempt to call nil
1140 posts
Location
Kaunas, Lithuania
Posted 11 July 2015 - 04:31 PM
You probably misspelled it. Check the spelling, Lua is also case-sensitive, so 'rednet' is not the same as, for example, 'RedNet'.
8543 posts
Posted 11 July 2015 - 04:35 PM
Moved to Ask a Pro.
121 posts
Posted 11 July 2015 - 05:47 PM
Can we see more code? And make sure the modem is on "rednet.open("side")"
Edited on 11 July 2015 - 03:47 PM
223 posts
Location
Minecraft in Minecraft in Minecraft in ComputerCraft... in Minecraft
Posted 14 July 2015 - 04:20 PM
You misspelled receive. You wrote recieve.
818 posts
Location
Wherever you want me to be
Posted 15 July 2015 - 05:42 AM
i've tried both, and no i didn't
just recheck that .-.
Edited on 15 July 2015 - 03:43 AM
957 posts
Location
Web Development
Posted 15 July 2015 - 06:07 AM
i've tried both, and no i didn't
just recheck that .-.
Still doesn't work? I assume you've restarted the computer by now.
Could you post screenshots?
2 posts
Posted 17 July 2015 - 11:44 AM
maybe u need to use id,message = rednet.receive(()
3057 posts
Location
United States of America
Posted 17 July 2015 - 04:09 PM
maybe u need to use id,message = rednet.receive(()
1. No, he doesn't
need to save the variables
2. You have 2 open parentheses, so that would error.
25 posts
Location
Melbourne (AU)
Posted 17 July 2015 - 04:24 PM
If you would like the message rednet is sending use this.
rednet.open("left") -- change left to the side of the computer/turtle the modem is on
local senderid, message = rednet.recieve()
Here is an example.
rednet.open("top")
while true do
local senderid, message = rednet.recieve()
print(message)
end
More info
here
Edited on 17 July 2015 - 02:46 PM