Raised This Month: $ Target: $400
 0% 

nVault help.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mandiii
Junior Member
Join Date: Jun 2010
Old 06-13-2010 , 14:52   nVault help.
Reply With Quote #1

When someone dies their kills/deaths is stored in a vault.
PHP Code:
public client_death(killervictimwpnindexhitplaceTK)
{
    new 
szKills[4];
    new 
szDeaths[4];
    new 
szKey[40];
    new 
szKeyTwo[40];
    
    
formatex(szKey39"%sKILLS"g_szAuthID[killer]);
    
formatex(szKeyTwo39"%sDEATHS"g_szAuthID[victim]);
    
    
formatex(szKills3"%d"get_user_frags(killer));
    
formatex(szDeaths3"%d"get_user_deaths(victim));
    
    
nvault_set(g_VaultszKeyszKills);
    
nvault_set(g_VaultszKeyTwoszDeaths);

I get the values this way:
PHP Code:
    new szKey[40];
    
formatex(szKey39"%sKILLS"g_szAuthID[id]);
    new 
iKills nvault_get(g_VaultszKey); 
PHP Code:
    new szKey[40];
    
formatex(szKey39"%sDEATHS"g_szAuthID[id]);
    new 
iDeaths nvault_get(g_VaultszKey); 
How should i do to get both Deaths and Kills in the same function as seperate variables?
Mandiii 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:52.


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