Error I get is: "startup:3:attempt to call nil"
Code:
http://pastebin.com/pgg0kPeY
startup:3:attempt to call nil
Started by ArronM, Mar 17 2013 01:07 AM
3 replies to this topic
#1
Posted 17 March 2013 - 01:07 AM
#2
Posted 17 March 2013 - 07:09 AM
Split into new topic.
Try `turtle.drop()` instead.
Try `turtle.drop()` instead.
#3
#4
Posted 17 March 2013 - 10:39 AM
All source codes are read from top to bottom, here you're trying to call your drop() function before it has been defined.
You should try to get the habit to always define all your functions first, then do your main code after it.
And if I might add, instead of doing
You should give "for" loops a try, like this
You should try to get the habit to always define all your functions first, then do your main code after it.
And if I might add, instead of doing
turtle.select(1) turtle.dropDown() turtle.select(2) turtle.dropDown() ... ... turtle.select(16) turtle.dropDown()
You should give "for" loops a try, like this
for slot = 1,16 do turtle.select(slot) turtle.dropDown() end32-ish lines shrunken to 4
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












