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

Attempt to perform arithmetic __sub on number and nil

Started by Alerith, 23 April 2013 - 09:42 AM
Alerith #1
Posted 23 April 2013 - 11:42 AM
I'm trying to make arithmetic math within variables. Anyone know what's happening?
Doyle3694 #2
Posted 23 April 2013 - 11:44 AM
You are trying to use an undeclared variable in a subtraction. If that's enough for you to know what's wrong then good, else post the code here and we'll try to find the problem in it with you

The ninja strikes again! :D/>(Yes I am THE ninja. Problem?)
SuicidalSTDz #3
Posted 23 April 2013 - 11:45 AM
Some code would help..

Damn ninja :P/>

Isn't there a stickie that states to provide code in Ask A Pro?

Found it :)/>

Post your code if you're not getting it to work! We can't tell you what's wrong if we can't see your code.
If you get an error, please provide the entire error message and code. Don't provide 'some' of the error message, as it may not contain the important part(s).
Alerith #4
Posted 23 April 2013 - 11:52 AM
I know about the code and the ninja :P/> I thought this was a general problem and the code was not necessary :P/>. Anyways, thanks for the response, I figured out what was wrong and yes there was a "local" variable that shouldn't be "local" :D/>
Dlcruz129 #5
Posted 23 April 2013 - 03:38 PM
Ignore me. I was never here.
Alerith #6
Posted 23 April 2013 - 04:02 PM
Ignore me. I was never here.

wut?