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

For Input String: 1W

Started by abouttabs, 12 August 2013 - 06:34 AM
abouttabs #1
Posted 12 August 2013 - 08:34 AM
Hello I have an issue with my script throwing For input string: 1w error every time I run it.
It was working fine earlier and now it seems to me (I might be horribly wrong) that part of my code, where all the variables are being declared, is being skipped.
here iis my code http://pastebin.com/PZQKXfZy
If anyone was so nice to look at it I would greatly appreciate it.
Thank you in advance.
Abouttabs
theoriginalbit #2
Posted 12 August 2013 - 08:57 AM
On like 53 you have a variable called 1w. In Lua a variable can only start with a letter or an _ but may contain or end in numbers… They cannot begin with numbers… Rename that variable and it will no longer be confused…
abouttabs #3
Posted 12 August 2013 - 10:10 AM
ahh thank you sir.. that was a typo I wasnt able to find…
Thank you, you saved me from my testing that right now is like 5 hours :-)
Thank you very much