Jump to content




Attempt to perform arithmetic __sub on number and nil


  • You cannot reply to this topic
5 replies to this topic

#1 Alerith

  • Members
  • 36 posts

Posted 23 April 2013 - 10:42 AM

I'm trying to make arithmetic math within variables. Anyone know what's happening?

#2 Doyle3694

  • Members
  • 815 posts

Posted 23 April 2013 - 10: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?)

#3 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 23 April 2013 - 10: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 :)

Quote

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).


#4 Alerith

  • Members
  • 36 posts

Posted 23 April 2013 - 10: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

#5 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 23 April 2013 - 02:38 PM

Ignore me. I was never here.

#6 Alerith

  • Members
  • 36 posts

Posted 23 April 2013 - 03:02 PM

View PostDlcruz129, on 23 April 2013 - 02:38 PM, said:

Ignore me. I was never here.

wut?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users