for(new i = 1; i <= MAX_LEVEL; i++) { if(currentExp >= (currentExp*i) && currentExp <= (currentExp*i) + (currentExp*i)) { p_Level[i] break; } }