weapon |
Problem description:
In runtime, it returns a error saying: "Cannot read null.layer".
I should have waited more before asking you guys, but now I know you are so smart and so helpful...
I can't get used to this.
Code:
Problem description: In runtime, it returns a error saying: "Cannot read null.layer". I should have waited more before asking you guys, but now I know you are so smart and so helpful... I can't get used to this. | ||
#2 Feb 21 2012, 2:18 pm
|
|
It's working now. I follow your advice and change de name of the overlay var. Thanks again DC!
| |
What are you trying to do with that line? Prevent the user from equipping an item twice? You should just be able to use an if():
But I've got to mention, naming a variable "overlay" is very confusing. Why not "equipment" or something?