Raised This Month: $ Target: $400
 0% 

Block keeps getting called.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-28-2021 , 13:29   Re: Block keeps getting called.
Reply With Quote #1

Use nvault_lookup instead.


or you can do this, you don't have to save the name.

PHP Code:
public GetFreePoints(id)
{
    new 
szAuth[35];
    
get_user_authid(idszAuthcharsmax(szAuth));

    if(
nvault_get(g_iVaultHandleszAuth) != 1)
    {
        new 
szName[32];
        
get_user_name(idszNamecharsmax(szName));
        
hnsxp_add_user_xp(idget_pcvar_num(g_pPointsAmount));
        
nvault_set(g_iVaultHandleszAuth"1");
        
CC_SendMessage(id"You succesfully received &x03%i &x04XP&x01."get_pcvar_num(g_pPointsAmount));
    }

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-28-2021 at 13:32.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



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