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

'=' expected?

Started by imacc2009, 07 July 2013 - 03:57 AM
imacc2009 #1
Posted 07 July 2013 - 05:57 AM
I would like to ask what '=' expected means. It say's on that on line 5 I need and = but I don't know where! Here is my code:


while true do
    turtle.attack(4)
    if turtle.getItemCount(16) then
    turtle.dropDown
    repeat
end 
Edited by
Lyqyd #2
Posted 07 July 2013 - 12:15 PM
Split into new topic.

You're missing the parentheses on line 4, so it thinks you want to change the value of turtle.dropDown instead of calling it. Add parentheses to that line (making it `turtle.dropDown()`), remove the repeat on the next line, and add another end at the end of the program.