Look, you have to define maxkevels which are 6. Then set a size tonthe constants with the define (so there won't be anny mismatches). Your while loop is not correct. You have to "while" it like this:
PHP Code:
while(gLvl[Atkr] < MAXLEVELS - 1){
if(gExp[Atkr] > Levels[gLvl[Atkr]])
//Plyer leveled up
else break
}
__________________