cvar doesnt work
Can anyone tell what I did wrong. register_cvar("pm_xpmultiplier", "2") doesnt want to work because I have it set to 2 but it gives me 3x xp. Let me know anything please and thank you.
Code:
#include <amxmodx> |
Re: cvar doesnt work
Delete g_exp its was a example put on else you normal xp, maybe too because you give poketexp elsewhere
|
Re: cvar doesnt work
I dont think that is the problem. The only problem is that its that the xp given to me is not correct. "2" should be X2 xp but its not doing that.
|
Re: cvar doesnt work
Why do you have -1 here, that is essentially making the multiplier do nothing when the cvar is set to 2.
new xp = ( (Poke_PlayerLevel( victim, -1 ) ) * (get_cvar_num("pm_xpmultiplier") - 1) ) I fixed some other things too. Untested. PHP Code:
|
All times are GMT -4. The time now is 14:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.