Originally Posted by liquidbase
with (maxXP == 0) the script throw a error if I want to display the value in a tooltip because of the nil-value.
|
So wrap the whole thing in a check to make sure the maxXP isn't zero, and skip doing anything with XP in that case, since there's no valid information to show.
If you need help with specific changes, you'll have to show your code.