For input string: "9by9"
What does that mean?
your typing it in the lua prompt
if you want to run a program do it from the shell
or just type shell.run("program")
Try typing, "edit 9by9" into the command prompt. Does it open your program's code?
are you editing the file on a turtle?
thats verry weird .-.
when i get unexplained errors like that i just restart MC
can we see your code?
use theare you editing the file on a turtle?
thats verry weird .-.
when i get unexplained errors like that i just restart MC
can we see your code?
Sure, How do you paste it so it still looks nice? By that I mean not make it look like this text here..
[CODE]
taguse theare you editing the file on a turtle?
thats verry weird .-.
when i get unexplained errors like that i just restart MC
can we see your code?
Sure, How do you paste it so it still looks nice? By that I mean not make it look like this text here..tag[CODE]
write("How many rows should it be: ")
rows = read()
for 9by9=1, rows do
turtle.up()
function line()
for linex=1, 8 do
turtle.placeDown()
turtle.forward()
end
end
function turn()
turtle.placeDown()
turtle.turnLeft()
turtle.forward()
end
line()
turn()
line()
turn()
line()
turn()
line()
turn()
end
write("How many rows should it be: ")
local rows = tonumber(read())
for i=1,rows do
turtle.up()
for i=1,4 do
for i=1,8 do
turtle.placeDown()
while not turtle.forward() do end
end
turtle.placeDown()
turtle.turnLeft()
while not turtle.forward() do end
end
end
well theres your problem
you cant start variables with a number
theres also some more problems
here be fixed:write("How many rows should it be: ") local rows = tonumber(read()) for i=1,rows do turtle.up() for i=1,4 do for i=1,8 do turtle.placeDown() while not turtle.forward() do end end turtle.placeDown() turtle.turnLeft() while not turtle.forward() do end end end
well theres your problem
you cant start variables with a number
theres also some more problems
here be fixed:write("How many rows should it be: ") local rows = tonumber(read()) for i=1,rows do turtle.up() for i=1,4 do for i=1,8 do turtle.placeDown() while not turtle.forward() do end end turtle.placeDown() turtle.turnLeft() while not turtle.forward() do end end end
ive had some problems with turtle.forward() returning falseWhy is it while not instead of just turtle.forward?