for some reason it says i dont have enuff XP when i have 700 XP
and i_bMoney = 200
Code:
new exp = hnsxp_get_user_xp(id);
new cost = get_pcvar_num(i_bMoney);
if (exp > cost || exp == cost)
{
client_print( id, print_chat, "[%s] You gave me %s just to have a good time!", cost, PLUGIN );
hnsxp_set_user_xp( id, exp - cost )
}
else
{
client_print( id, print_chat, "[%s] You dont have enuff XP!", PLUGIN );
}
__________________