02.03.2015, 20:35
I have an XP system, and I'm using an exponential growth formula to calculate xp required for each level, but it doesn't seem to have the right values, it goes up by one, and then goes up a big amount every so often, instead of increasing gradually like it's suppose to...
Heres the results of the xp needed for the first two ranks:
And here is the function to get points needed for a specific rank...
I'm pretty sure the calculation is correct? Is it pawn being weird? How can I fix this?
Heres the results of the xp needed for the first two ranks:
Quote:
[21:06:55] 0: 400 [21:06:55] 1: 401 [21:06:55] 2: 402 [21:06:55] 3: 403 [21:06:55] 4: 404 [21:06:55] 5: 405 [21:06:55] 6: 406 [21:06:55] 7: 807 [21:06:55] 8: 808 [21:06:55] 9: 809 [21:06:55] 10: 810 [21:06:55] 11: 811 [21:06:55] 12: 812 [21:06:55] 13: 813 [21:06:55] 14: 1614 [21:06:55] 15: 1615 [21:06:55] 16: 1616 [21:06:55] 17: 1617 [21:06:55] 18: 1618 [21:06:55] 19: 1619 [21:06:55] 20: 1620 [21:06:55] 21: 3221 [21:06:55] 22: 3222 [21:06:55] 23: 3223 [21:06:55] 24: 3224 [21:06:55] 25: 3225 [21:06:55] 26: 3226 [21:06:55] 27: 3227 |
Код:
GET_RANK_POINTS(rank) { new points; points = rank/7; new Float:floatpoints = floatpower(2,points); points = rank+400*floatround(floatpoints); return points; }