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

Line 10 '=' expected error

Started by Liara11, 22 July 2012 - 12:47 AM
Liara11 #1
Posted 22 July 2012 - 02:47 AM
I've been recently coding several files for a 'warriors archive' on one of my computers. I was working on Scourge and Firestar's archive and when finished, then tried to run it it didn't work. Error message: bios:206: [string "Blood"] :10: =' expected .
Error message:


Thanks for the help, I didn't realize it was such a simple problem, I really am clueless XD.

The code:
Spoilerprint ("entering Firestar and Scourge's archives..")
sleep (1)
print ("3")
sleep (1)
print ("2")
sleep (1)
print ("1")
print ("archive's entered")
term.clear()
end
term.setCursorPos(1,1)
sleep(5)
print ("Firestar:")
sleep(2)
print ("Name: Firestar")
print ("Rank: Leader")
print ("Clan: Thundeclan")
print ("Mate: Sandstorm")
print ("Kits: Squirrelflight, and Leafpool")
sleep (2)
print ("Mentor: Bluestar")
print ("Mother: Nutmeg")
print ("Father: Jake")
print ("Sister: Princess")
print ("Brother(half): Scourge")
sleep (5)
print ("proccessing archive…")
sleep (3)
print ("archive entered")
sleep (1)
print ("Name: Scourge")
print ("Rank: Leader")
print ("clan: Bloodclan (a rouge clan)")
print ("Mate: none")
print ("kits: none")
sleep (1)
print ("Mother: Quince")
print ("Father: Jake")
print ("Sister: name unknown")
print ("Brother: name unkown")
sleep (3)
print ("archive finished")
end
some of the code is different, I changed it because of the error messages.
Lyqyd #2
Posted 22 July 2012 - 02:58 AM
Um, take the "eof" out of there. If it's been complaining about "'eof' expected", it's because you have too many ends.
Liara11 #3
Posted 22 July 2012 - 03:07 AM
I did, I added to the code, I'm updating it now.

Even though I changed it, it still has the same error message.
Lyqyd #4
Posted 22 July 2012 - 03:35 AM
Let's see the new code.
Liara11 #5
Posted 22 July 2012 - 03:59 AM
Spoiler

print ("entering Firestar and Scourge's archives..")
sleep (1)
print ("3")
sleep (1)
print ("2")
sleep (1)
print ("1")
print ("archive's entered")
term.clear()
term.setCursorPos(1,1)
sleep(5)
print ("Firestar:")
sleep(2)
print ("Name: Firestar")
print ("Rank: Leader")
print ("Clan: Thundeclan")
print ("Mate: Sandstorm")
print ("Kits: Squirrelflight, and Leafpool")
sleep (2)
print ("Mentor: Bluestar")
print ("Mother: Nutmeg")
print ("Father: Jake")
print ("Sister: Princess")
print ("Brother(half): Scourge")
sleep (5)
print ("proccessing archive...")
sleep (3)
print ("archive entered")
sleep (1)
print ("Name: Scourge")
print ("Rank: Leader")
print ("clan: Bloodclan (a rouge clan)")
print ("Mate: none")
print ("kits: none")
sleep (1)
print ("Mother: Quince")
print ("Father: Jake")
print ("Sister: name unknown")
print ("Brother: name unkown")
sleep (3)
print ("archive finished")

Well THAT was extremely simple.. XD

all I had to do was take out the ends.