Raised This Month: $ Target: $400
 0% 

nvault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-13-2018 , 18:07   Re: nvault
Reply With Quote #4

There is a simpler way you can use instead of all that complex.
PHP Code:

static szAuthid[33][32], gszActivityTime[24], g_user_time[33], UserActivityTime[33];
#define get_user_time(%1) (UserActivityTime[%1] + (get_systime() - g_user_time[%1]))

public client_putinserver(id)
{
      
get_user_authid(idszAuthid[id], 31);
      
g_user_time[id] = get_systime();
      
UserActivityTime[id] = nvault_get(gvaultszAuthid[id]);
}

public 
client_disconnect(id)
{
      
num_to_str(UserActivityTime[id] + (get_systime() - g_user_time[id]), gszActivityTime23);
      
nvault_set(gvaultszAuthid[id], gszActivityTime);

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


Last edited by Bugsy; 12-13-2018 at 21:22. Reason: Fixed get_nvault -> nvault_get
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 07:32.


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