ComputerCraft syntax error, please help

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Retsjo

New Member
Jul 29, 2019
2
0
0
Ive been having trouble with this code i got from direwolf20, when i start the "cycle" program it comes up with bios:338: [string "cycle"]:9: syntax error

I dont know what this means and i checked line 9 but couldnt figure it out.

here's the code:

Code:
function deploy()
  turtle.select(1)
  turtle.place()
end
 
function clearInv()
  for i = 1, 10 do
      turtle,select(i)
      turtle.dropDown()
  end
  turtle.select(1)
end
 
function getMiner()
  turtle.select(1)
  turtle.dig()
end
 
deploy()
sleep(10)
ClearInv()
getMiner()
 

apemanzilla

New Member
Jul 29, 2019
304
0
0
You have turtle,select when it should be turtle.select

Also, there's a section for coding help at the CC forums, probably better to ask there.
 
  • Like
Reactions: Freakscar

Retsjo

New Member
Jul 29, 2019
2
0
0
oh wow cant believe i didnt see that thanks, i will ask at cc forums next time.[DOUBLEPOST=1375461035][/DOUBLEPOST]also when I run it, it comes up with another error cycle:21: attempt to call nill[DOUBLEPOST=1375461115][/DOUBLEPOST]Dont worry had a capitalized letter :)
 

apemanzilla

New Member
Jul 29, 2019
304
0
0
oh wow cant believe i didnt see that thanks, i will ask at cc forums next time.[DOUBLEPOST=1375461035][/DOUBLEPOST]also when I run it, it comes up with another error cycle:21: attempt to call nill[DOUBLEPOST=1375461115][/DOUBLEPOST]Dont worry had a capitalized letter :)
No problem! I also help out there so you might see me from time to time ;)