Posted 09 May 2013 - 07:12 PM
Okay so this is my code
Running this, it works fine up until x > z(and i assume x< z), It gives me the error that is the title of this post.. Problem is, I am new, so I don't know how to work around this(Or fix it!)
So i come to you pros, and help is appreciated :)/>
print("Select which slot you wish to use 1,16")
ic = read()
b = tonumber(ic)
x = turtle.getItemCount(B)/>
print("How many items do you want to use? 0,64")
z = read()
if x == z then
rs.setOutput("left", true)
sleep(5)
rs.setOutput("left", false)
else
if x > z then
print("Too many items in slot 5")
end
if x < z then
print("Not enough items in slot 5")
end
end
Running this, it works fine up until x > z(and i assume x< z), It gives me the error that is the title of this post.. Problem is, I am new, so I don't know how to work around this(Or fix it!)
So i come to you pros, and help is appreciated :)/>