I'm trying to make a constant hud display for my Ninja Mod. Soemthing similar to superhero mod where it shows your lvl and xp etc.
I need to have it say like
[(Ninja Class Here) Ninja] Level: (current Level) XP

current)/(amount needed for next lvl)
My Classes are
Code:
#define CLASS_NOTHING 0
#define CLASS_STRONG 1
#define CLASS_FAST 2
#define CLASS_STEALTHY 3
#define CLASS_BALANCED 4
Playerclass,lvl,and xp are
Code:
new PlayerClass[33]
new PlayerXP[33]
new PlayerLevel[33]
Here's what I have now, but it's not working at all.
Code:
public ShowHUD(id)
{
new HUD[51]
format(HUD, 50, "[%s Ninja]Level: %i XP/ %i", CLASSES[PlayerClass[id]], PlayerLevel[id], PlayerXP[id])
message_begin(MSG_ONE, msgtext, {0,0,0}, id)
write_byte(0)
write_string(HUD)
message_end()
return PLUGIN_CONTINUE
}