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
bios:338: (string "water") :7: '=' expected
Started by disabeast, Mar 10 2013 02:05 PM
4 replies to this topic
#1
Posted 10 March 2013 - 02:05 PM
#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.
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
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 thism = 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
Posted 11 March 2013 - 05:08 AM
Spongy141, 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 thism = 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
Posted 11 March 2013 - 05:50 AM
ZudoHackz, on 11 March 2013 - 05:08 AM, said:
Spongy141, 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 thism = 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 [] )1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











