Whenever I try to give XP as a reward no matter what the amount the player goes down to lvl 1 and has -15982349(some number like that) XP.
I can level them up manually but something is very broken here. Also when a player kills monsters it doesn't reward them XP.
Also:
Does anyone have a table for Xp to level?
If i can't rely on the game to auto reward for killing monstres i have to know much to give my players.