Okay, I have created an experience bar that shows the progress of the users experience. I have given the database userexp and a maxexp fields. How can I roll over the remaining experience if they go over their max experience? Right now I have it setting their user experience back to 0 and increasing their max eperience based on their level. That way the experience bar goes back down and shows how much exp they need to level up again.
So if the max experience is 600 and they are sitting at 590 and do a quest for 50.... how can I add the 40 extra experience to the next level?
Any ideas?