Raised This Month: $ Target: $400
 0% 

Help with nvault-find max value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lis_16
Senior Member
Join Date: Feb 2008
Old 03-13-2011 , 16:24   Help with nvault-find max value
Reply With Quote #1

Can anyone write a code searching max value from whole nvault?

This is my save data function:

PHP Code:
public Save(id){
    new 
name[35]
    
get_user_name(id,name,34)
    new 
vaultdata[256];
    new 
vaultkey[64];
    
format(vaultkey,63,"%s-nik",name);
    
format(vaultdata,255,"%i#%i#",level[id], punkty[id]) 
    
nvault_set(g_Vault,vaultkey,vaultdata);
    

I want set +1 level to player who has the most punkty-value and reset all punkty-value to all keys, is that possible? This is a kind of xp mod but i want add +1 lvl to a player who have the most punkty collected in one day fe. At 24:00 find player who has the most punkty and add him +1 lvl, reset all punkty for all players. Next day they must collect punkty and at 24:00 again find player who has the most punkty and add him +1 lvl etc.
lis_16 is offline
 



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 14:37.


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