Jump to content




Help with Error


  • You cannot reply to this topic
1 reply to this topic

#1 raysilverstone

  • New Members
  • 2 posts

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()
[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--imports more fill blocks
[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 
  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.

#2 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

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 by Bubba, 30 November 2013 - 03:31 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users