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

bios:338; [string "startup"]:7: syntax error

Started by nahakj, 12 May 2013 - 09:03 PM
nahakj #1
Posted 12 May 2013 - 11:03 PM
this came up with the error bios:338; [string "startup"]:7: syntax error

what is wrong?


rednet.open("right")

local senderId, message, distance = rednet.reveive()

if message == "First" then
  turtle.digUp()
  for i = 1, 15 do
     turtle.down()
  end
  turtle.select(1)
  repeat
    turtle.placeUp()
    sleep(0.5)
  until turtle.detectUp() == true
end
Edited by
Lyqyd #2
Posted 13 May 2013 - 02:52 PM
Split into new topic.
Kingdaro #3
Posted 13 May 2013 - 04:07 PM
I don't think this is the issue, but the only problem I can see is that you've misspelled "receive" on line 3.
Praetor22 #4
Posted 14 May 2013 - 01:54 AM
SpoilerThere is a syntax error on line 7


  for i = 1, 15 do

remove the space between the comma and the 15 like so:


  for i = 1,15 do

Unless I am an idiot (this is always possible) that should solve this specific issue but as King said, you misspelled "receive."

It has been confirmed by Imque, I am an idiot.
Imque #5
Posted 14 May 2013 - 02:04 AM
There is a syntax error on line 7


  for i = 1, 15 do

remove the space between the comma and the 15 like so:


  for i = 1,15 do

Unless I am an idiot (this is always possible) that should solve this specific issue but as King said, you misspelled "receive."

That is completely wrong. The comma is fine.