This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ikon106's profile picture

[Error/Bug] [Turtle] turtle.getFuelLevel and turtle.refuel

Started by ikon106, 09 December 2012 - 10:39 AM
ikon106 #1
Posted 09 December 2012 - 11:39 AM
Hi!
When I open the "Interactive Lua promt" and do turtle.getFuelLvel I get back: function: d44e83 and when I do turtle. refuel I get back: function: d504cf
What does this mean? and what can I do about it?
Goof #2
Posted 09 December 2012 - 11:43 AM
Remember that apis, needs () after the name. Turtle.getFuelLevel()
-mikk809h
Lyqyd #3
Posted 09 December 2012 - 11:44 AM
You're looking up the value of each, and the values are functions. Try calling them by appending parentheses to the end, i.e. turtle.refuel().
ikon106 #4
Posted 28 January 2013 - 11:25 PM
Thank you both