I have this code
PHP Code:
public GetFreePoints(id)
{
new szName[32], szAuth[35];
get_user_name(id, szName, charsmax(szName));
get_user_authid(id, szAuth, charsmax(szAuth));
if(!nvault_get(g_iVaultHandle, szAuth, szName, charsmax(szName)))
{
hnsxp_add_user_xp(id, get_pcvar_num(g_pPointsAmount));
nvault_set(g_iVaultHandle, szAuth, szName);
CC_SendMessage(id, "You succesfully received &x03%i &x04XP&x01.", get_pcvar_num(g_pPointsAmount));
}
}
No matter what, that check still passes every time. Can someone explain me why, cause i'm really not getting it right now.
__________________