Raised This Month: $ Target: $400
 0% 

Block keeps getting called.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-28-2021 , 13:01   Block keeps getting called.
Reply With Quote #1

I have this code

PHP Code:
public GetFreePoints(id)
{
    new 
szName[32], szAuth[35];
    
get_user_name(idszNamecharsmax(szName));
    
get_user_authid(idszAuthcharsmax(szAuth));

    if(!
nvault_get(g_iVaultHandleszAuthszNamecharsmax(szName)))
    {
        
hnsxp_add_user_xp(idget_pcvar_num(g_pPointsAmount));
        
nvault_set(g_iVaultHandleszAuthszName);
        
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.
__________________

Last edited by Napoleon_be; 10-28-2021 at 13:03.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode