Posted 28 July 2015 - 11:50 AM
Hello, I would like some help as i have being trying to make a remote control turtle.
Error Message:
bios:367: [string "controlled"]:18: '=' expected
Controlled is the name of the program.
Program:
while true do
event, senderId, message, distance = os.pullEvent("rednet_message")
print (message)
if message == "backwards" then
turtle.back()
end
if message == "forwards" then
turtle.forward()
end
if message == "left" then
turtle.turnLeft()
end
if message == "right" then
turtle.turnRight()
end
if message == "down" then
turtle.down()
end
if message == "up" then
turtle.up()
end
if message == "attack" then
turtle.attack()
end
if message == "attackup" then
turtle.attackup()
end
if message == "attackdown" then
turtle.attackdown()
end
if message == "dig" then
turtle.dig()
end
if message == "digup" then
turtle.digUp()
end
if message == "digdown" then
turtle.digDown()
end
if message == "refuel20" then
turtle.refuel(20)
end
if message == "refuel64" then
turtle.refuel(64)
end
end
Thanks for any help
Error Message:
bios:367: [string "controlled"]:18: '=' expected
Controlled is the name of the program.
Program:
while true do
event, senderId, message, distance = os.pullEvent("rednet_message")
print (message)
if message == "backwards" then
turtle.back()
end
if message == "forwards" then
turtle.forward()
end
if message == "left" then
turtle.turnLeft()
end
if message == "right" then
turtle.turnRight()
end
if message == "down" then
turtle.down()
end
if message == "up" then
turtle.up()
end
if message == "attack" then
turtle.attack()
end
if message == "attackup" then
turtle.attackup()
end
if message == "attackdown" then
turtle.attackdown()
end
if message == "dig" then
turtle.dig()
end
if message == "digup" then
turtle.digUp()
end
if message == "digdown" then
turtle.digDown()
end
if message == "refuel20" then
turtle.refuel(20)
end
if message == "refuel64" then
turtle.refuel(64)
end
end
Thanks for any help