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

Erro help please

Started by ixic, 12 October 2012 - 02:20 PM
ixic #1
Posted 12 October 2012 - 04:20 PM
This error occurs as soon as I start typing…

parallel :22: collector :18: attempt to call string.

[attachment=542:Collector.txt]

Could someone help me?
Doyle3694 #2
Posted 12 October 2012 - 04:55 PM
well, first and foremost your code is unreadable.
OmegaVest #3
Posted 12 October 2012 - 04:57 PM
It looks like you forgot an operator there. You have:

  until event== "char" and p1 "y"

where you need to have something like this:

  until event== "char" and p1 == "y"

On line 18.


EDIT: @Doyle3694 His code is formatted. Your text editor sucks if you can't see it.
GopherAtl #4
Posted 12 October 2012 - 05:00 PM
For some stupid reason windows persists in using non-standard newline characters, so text files not created on windows tend to open in notepad all run together on one line. Any other text editor - even wordpad, also included with windows - can detect this and handle them fine, but notepad keeps on being notepad.
Doyle3694 #5
Posted 12 October 2012 - 05:06 PM
well yeah since windows gave me notepad as the recommended program I thought he wrote it in notepad. Why even use txt files lol?
Ditto8353 #6
Posted 12 October 2012 - 08:15 PM
Pro tip: Notepad++
ixic #7
Posted 12 October 2012 - 09:51 PM
It wouldn't upload the default file by computercraft so I made it into a txt file