This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
raysilverstone's profile picture

Help with Error

Started by raysilverstone, 30 November 2013 - 02:22 PM
raysilverstone #1
Posted 30 November 2013 - 03:22 PM
I'm working on learning lua and I've got a path paving program that I made. All 700 lines of code are good expect for this one function I can't figure out what is wrong with it.

Here is the function:

function importFill()
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--imports more fill blocks
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 
  placeIChest()
  turtle.select(SpaceWithBlock)
  turtle.suckUp
 
  sleep(1)
  removeIChest()
end

line 308: '=' expected near 'sleep'
Any help on how to fix this would be great.
Bubba #2
Posted 30 November 2013 - 03:30 PM
The error is on the line before it (line 306), where you have turtle.suckUp instead of turtle.suckUp(). Notice the parentheses. Looks like you just forgot them.
Edited on 30 November 2013 - 02:31 PM