here it is
Code:
public ShowHUD(id) {
new HUD[512]
new NextLevelXP = LEVELS[PlayerLevel[id]+1]
format(HUD, 511, "[%s] Level: %i XP: %i / %i", CLASSES[PlayerClass[id]], PlayerLevel[id], PlayerXP[id], NextLevelXP)
message_begin(MSG_ONE, msgtext, {0,0,0}, id)
write_byte(0)
write_string(HUD)
message_end()
return PLUGIN_HANDLED
}
i know u have to do something bout level 10 in this thing...
Code:
new NextLevelXP = LEVELS[PlayerLevel[id]+1]
but that doesn't matter. I don't think thats the problem...if the level was 10 then indexed would be 11, right? so the prob is that I am gaining levels all the time and i don't know why... and it starts at lvl 1. i want it to start at lvl 0...