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

'=' Expected?

Started by crazygoattoe, 06 January 2013 - 03:32 PM
crazygoattoe #1
Posted 06 January 2013 - 04:32 PM
I got a quarry program and just finished copying it into my turtle, but when I try to run it I get the message: "bios:338: [string "quarry"]:65: '=' expected"

here's the code around line 65:

for i=2, 15 do
Cnum = turtle.getItemCount(i)
ifCnum >= Rcheck and slot [1] ~= 1 then
slot[1] = 2
table.insert(stacks, i)
sandCh = 1
end
end

Any help would be great, I don't know too much about this, thanks!
imef #2
Posted 06 January 2013 - 04:45 PM
I don't know if it's just that you did a mistake when copying on the forum, but on line 3 you wrote "ifCnum …" instead of "if Cnum …".

PS : you posted this topic at the wrong place.
It should be in the "Ask a pro" section.
crazygoattoe #3
Posted 06 January 2013 - 05:01 PM
Ah that's it! Thanks haha didn't even notice that and I looked over it like 10 times. And thanks for the tip about where to post, I've never used the forums here before so I was just guessing