GravityScore, on 02 May 2013 - 11:47 AM, said:
Hmmm. Try replacing the number checking bit (starting line 9) with this:
-- You can do some checking here
if length and (not tonumber(length) or tonumber(length) < 1) then
print("length must be a positive number")
return
end
if amount and (not tonumber(amount) or tonumber(amount) < 1) then
print("amount must be a positive number")
return
end
Replacing the section starting from line 9 yielded the error:
"turtle:127: 'for' limit must be a number". Meaning it still isn't reregistering as a number.
I think you meant line replace it with the checking from at line 13. That still reads:
"turtle:18: Expected number"
GravityScore, on 02 May 2013 - 11:47 AM, said:
Not sure if that will work. What did you type in as the arguments to the program to cause the error?
strip 10 10