VicKy wrote: ↑3 years ago
Its have error when i give my self lvl just lvl up and one shoot = one lvl uping
and xp goes to - negative
Level system NOMAX
This because you use high
ze_maxlevels_increment
, which will result in very high max-xp that cannot be stored in a variable. To understand, in PAWN any integer number has 4 byte to be stored in. Which mean maximum number that can be stored is nearly 2,147,483,648; 2 billions. The variable will not be able to store more because this number is represented in 32 bits.
When for example you use
ze_maxlevels_increment 2.0
, and try to set user level to 50, the max-xp exceeds 2,147,483,648 and things get wrong. So in fact this number cannot be reached by a player by any way.
So the solution is to reduce
ze_maxlevels_increment
to value like 1.1, and with this setting make sure not to exceed level 100.
Practical example, use these settings:
#define MAX_LEVEL 92
ze_maxlevels_increment 1.2
If level go higher than 92, the max-xp will exceed the allowed number that can be stored in a variable, and you get wrong results.
If you will use No-MAXXP version then you need to take look at this:
viewtopic.php?f=7&t=3422