Based on the Max Exp code, I think the code you wrote only makes a character level up once and if you try to continue with the code on, it'll freeze the exp bar. Basically put, after the max exp, you wouldn't have to worry about leveling so the exp bar is frozen because you're at level 99 right...