Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get var_frags problem #8

Closed
bjallamo opened this issue May 28, 2016 · 1 comment
Closed

get var_frags problem #8

bjallamo opened this issue May 28, 2016 · 1 comment

Comments

@bjallamo
Copy link

bjallamo commented May 28, 2016

Because the frags gone to 0 and minus with get_entvar(id, var_frags) ....
bjallamo/Reapi_AMXX_Plugins@71ce06a?diff=split

@s1lentq
Copy link
Owner

s1lentq commented May 31, 2016

new Float:flFrags = Float:get_entvar(id, var_frags) + 1.0;
set_entvar(g_iAssist[pVictim], var_frags, flFrags);

or

new Float:flFrags;
get_entvar(id, var_frags, flFrags);
set_entvar(g_iAssist[pVictim], var_frags, flFrags + 1.0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants