Raised This Month: $ Target: $400
 0% 

Save Points


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bat
Veteran Member
Join Date: Jul 2012
Old 04-14-2013 , 03:16   Save Points
Reply With Quote #1

Hello i have problem with Points
I adding in the main Points System + Shop and i need save points i work 1 day and all one no save

PHP Code:
public save_points(id)
{
    new 
valut nvault_open("points")
    
    if(
valut == INVALID_HANDLE)
    
set_fail_state("nValut returned invalid handle")
    
    new 
key[62], value[10], ip[33]
    
    
//get_user_ip(id, ip, 32, 1);
    
get_user_authid(idip32);
    
    
format(key61,"%s-points"ip)
    
format(value9,"%d"Point[id])
    
    
nvault_set(valutkeyvalue)
    
nvault_close(valut)    
    
    return 
PLUGIN_CONTINUE;
}
public 
load_points(id)
{
    new 
valut nvault_open("points")
    
    if(
valut == INVALID_HANDLE)
    
set_fail_state("nValut returned invalid handle")
    
    new 
key[100], ip[33]
    
    
//get_user_ip(id, ip, 32, 1);
    
get_user_authid(idip32);
    
    
formatex(key99,"%s-points"ip)
    
    
Point[id] = nvault_get(valutkey)    
    
nvault_close(valut)
    
    return 
PLUGIN_CONTINUE;

__________________

Last edited by bat; 04-14-2013 at 03:17.
bat is offline
Send a message via Skype™ to bat
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 03:28.


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