2 posts
Posted 25 October 2014 - 09:23 PM
7083 posts
Location
Tasmania (AU)
Posted 25 October 2014 - 11:42 PM
read() returns a string value, but the values in the ConPC table are all numbers. Because of this, input will never match ConPC, no matter what you type.
tonumber(read()) can be used to convert the returned data type.
If you have access to your world save (ie, it's stored on your computer, not some remote server you don't own), looking inside it will reveal a "computers" folder. You can access the files saved on your systems directly there. Makes for easier editing, not to mention copy/pasting.
If you don't have access to the world save directly, try the inbuilt pastebin script. Assuming the http API is enabled (and on most servers, you'd expect it to be), this will allow you to send scripts to or pull scripts from pastebin.com.
2 posts
Posted 26 October 2014 - 01:05 AM
But then why would only the first one work?
7083 posts
Location
Tasmania (AU)
Posted 26 October 2014 - 01:25 AM
I dunno, maybe if you revealed the rest of your code I could comment further.