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
8543 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.
645 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 [] )
1114 posts
Location
UK
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 [] )
645 posts
Location
'Merica
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.