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

Could someone check my faulty program

Started by Pedroc1999, 29 October 2012 - 11:12 PM
Pedroc1999 #1
Posted 30 October 2012 - 12:12 AM
I have made a script to work as a lever, I followed a tutorial and i could swear that i made no mistakes. I uploaded my Error and My Program.Could Someone tell me whats wrong? Quick Reply please
KillaVanilla #2
Posted 30 October 2012 - 12:16 AM
  1. Wrong section. This goes in "Ask a Pro".
  2. Put your code on Pastebin. It makes it easier for us to help you when you have your code in a readable format rather than an image.
  3. You need quotes around all of your messages:
    
    		print("This message has quotes and will work.")
    		print(This message does not have quotes and will not work.)
    		
Heracles421 #3
Posted 30 October 2012 - 12:16 AM
First of all, this goes in the ask a pro section
The error is caused because you're missing "" at line 8, when printing operation failed. you have the same error at line 9, 13 and 16

When printing anything your code should be:

print("<-- Use quotes when printing strings-->"..ThisIsForA_Variable)
Pedroc1999 #4
Posted 30 October 2012 - 09:21 AM
thank you done that but now it gives an error on the last line, it says that it expects a '=' sign on the shutdon line
end
end
shutdown
remiX #5
Posted 30 October 2012 - 09:24 AM
What shutdown line?
Pedroc1999 #6
Posted 30 October 2012 - 10:37 AM
i added it in just you couldnt see it in the picture but the laste 3 lines are set out like my above post
remiX #7
Posted 30 October 2012 - 10:57 AM
Oh change shutdown to os.shutdown()