Jump to content




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


  • You cannot reply to this topic
4 replies to this topic

#1 disabeast

  • New Members
  • 1 posts

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

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#3 Spongy141

  • Members
  • 526 posts
  • Location'Merica

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 [] )

#4 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 11 March 2013 - 05:08 AM

View PostSpongy141, on 10 March 2013 - 09:43 PM, said:

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 [] )


#5 Spongy141

  • Members
  • 526 posts
  • Location'Merica

Posted 11 March 2013 - 05:50 AM

View PostZudoHackz, on 11 March 2013 - 05:08 AM, said:

View PostSpongy141, on 10 March 2013 - 09:43 PM, said:

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users