david2598d175 Posted August 19, 2014 Share Posted August 19, 2014 (edited) deleted Edited February 25, 2015 by Guest Link to comment
Et-win Posted August 19, 2014 Share Posted August 19, 2014 Does the element data exists? Because if it doesn't, it will return false. Link to comment
david2598d175 Posted August 19, 2014 Author Share Posted August 19, 2014 (edited) deleted Edited February 25, 2015 by Guest Link to comment
Mr_Moose Posted August 19, 2014 Share Posted August 19, 2014 Line:97 setScoreData(source, "deaths", getElementData(source, "deaths") + 1) That means "getElementData(source, "deaths")" isn't defined, you need to handle the special case when it's nil: (getElementData(source, "deaths") or 0) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now