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

bios:338: (string "water") :7: '=' expected

Started by disabeast, 10 March 2013 - 01:05 PM
disabeast #1
Posted 10 March 2013 - 02:05 PM
title:
bios: 338: … '=' expected error

i keep getting this error message(bios:338: (string "water") :7: '=' expected) every time i run this program:

m = peripheral.wrap("right")
turtle.select(1)
while true do
m.suckdown()
turtle.suckup()
m.pack
turle.dropup()
sleep(5)
end
Lyqyd #2
Posted 10 March 2013 - 03:21 PM
Split into new topic.

m.pack needs parentheses: m.pack()

You also have issues with capitalization. Lua is case-sensitive, so suckup and suckUp are different and only one works.
Spongy141 #3
Posted 10 March 2013 - 09:43 PM
This


m = peripheral.wrap("right")
turtle.select(1)
while true do
m.suckdown()
turtle.suckup()
m.pack
turle.dropup()
sleep(5)
end
should be this

m = peripheral.wrap("right")
turtle.select(1)
while true do -- Spacing is really helpful also
  m.suckDown() -- as Lyqyd said, you need to capitalize this type of stuff.
  turtle.suckUp()
  m.pack()  -- you need to have the () or it wont work
  turlte.dropUp() -- You spelled turtle wrong in this line EDIT: and forgot to cap the Up..
  sleep(5)
end
Also do {code} code {/code} when posting your code (just replace the {} with [] )
Zudo #4
Posted 11 March 2013 - 05:08 AM
This


m = peripheral.wrap("right")
turtle.select(1)
while true do
m.suckdown()
turtle.suckup()
m.pack
turle.dropup()
sleep(5)
end
should be this

m = peripheral.wrap("right")
turtle.select(1)
while true do -- Spacing is really helpful also
  m.suckDown() -- as Lyqyd said, you need to capitalize this type of stuff.
  turtle.suckUp()
  m.pack()  -- you need to have the () or it wont work
  turlte.dropUp() -- You spelled turtle wrong in this line EDIT: and forgot to cap the Up.. AND YOU SPLET IT WRONG!
  sleep(5)
end
Also do {code} code {/code} when posting your code (just replace the {} with [] )
Spongy141 #5
Posted 11 March 2013 - 05:50 AM
This


m = peripheral.wrap("right")
turtle.select(1)
while true do
m.suckdown()
turtle.suckup()
m.pack
turle.dropup()
sleep(5)
end
should be this

m = peripheral.wrap("right")
turtle.select(1)
while true do -- Spacing is really helpful also
  m.suckDown() -- as Lyqyd said, you need to capitalize this type of stuff.
  turtle.suckUp()
  m.pack()  -- you need to have the () or it wont work
  turlte.dropUp() -- You spelled turtle wrong in this line EDIT: and forgot to cap the Up.. AND YOU SPLET IT WRONG!
  sleep(5)
end
Also do {code} code {/code} when posting your code (just replace the {} with [] )
Lol if I was half asleep when I posted that, so if I missed anything, that's probably why.