Hello everyone, I have a level system, and I want to display the percent of XP needed for the next level.
I have this formula for the leveling up:
PHP Code:
int CalculateXP( int currentLevel )
return currentLevel * 2 * g_CvarXpMultiplier.IntValue;
I have 2 variables for the player xp and level:
PHP Code:
int g_level[ MAXPLAYERS + 1 ];
int g_xp[ MAXPLAYERS + 1 ];
Can someone give me a formula for that, I am not that good with the math?
Thank you.