Quote:
Originally Posted by Black Rose
formatex(szText, sizeof(szText) -1, "[%s]^n[XP : %i/%i]^n[Buy XP = /buyxp]", Prefix[Level[id]], eXP[id], VariableThatContainsXPForAllLevels[ Level[id] + 1 ])
There's a macro called charsmax() replacing sizeof()-1.
|
PHP Code:
#define MaxLevels 200
new const Levels[MaxLevels] =
{
15,
40,
75,
130,
200,
300,
450,
650,
1000,
1500,
This is part of code with const Levels[MaxLevels]
Should it be like that?
PHP Code:
formatex(szText, sizeof(szText) -1, "[%s]^n[XP : %i/%i]^n[Kupenie XP = /buyxp]", Prefix[Level[id]], eXP[id], Levels[ Level[id] + 1 ])
//EDIT : WORKS!
Now i need to know how to construct the code "on level up".
Just like on lvl up = say "player has leveled up to 50"
__________________