35 posts
Location
Wales,UK
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
278 posts
Posted 30 October 2012 - 12:16 AM
- Wrong section. This goes in "Ask a Pro".
- 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.
- 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.)
248 posts
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)
35 posts
Location
Wales,UK
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
2088 posts
Location
South Africa
Posted 30 October 2012 - 09:24 AM
What shutdown line?
35 posts
Location
Wales,UK
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
2088 posts
Location
South Africa
Posted 30 October 2012 - 10:57 AM
Oh change shutdown to os.shutdown()