Jump to content

Small problem


Malone.

Recommended Posts

Posted

well my script always giving error like this

 

ERROR: CIOupdatesinfo/updates.slua:170: attempt to perform arithemtic on local 'mmx' (a nil value)

 

line 170 of mine script

   
	local val8 = dd + (mmx*2) +  math.floor(((mmx+1)*3)/5)   + yy + math.floor(yy/4)  - math.floor(yy/100)  + math.floor(yy/400) + 2
	


 

Posted

As the error message suggests, local variable 'mmx' is has a nil value and you're attempting to use it for arithmetic (basic math operations like addition). You probably never defined mmx, or defined it out of scope.

Previously known as MrTasty.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...