Jump to content

Error: Attempt to perform arithmetic on local value <a nil value>


turret001

Recommended Posts

  • Human Resources Staff
Posted (edited)

Here is a screenshot of the error message (console)

2d9aa650-b75b-11e6-94f8-71031198e8fb.png

 

here are the lines that cause problem:

nj7EzM.png

 

 

not sure what's wrong, I didn't write the code, and sadly I have no clue how to fix it..

Edited by turret001
Posted

Looks like the problem is at this line:  addPlayerStats (source,"thirst",waterGain)

Can you insert the following line after it:

outputChatBox("waterGain value: " .. tostring(waterGain))

Then see what it returns

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