Raised This Month: $ Target: $400
 0% 

Saving ip's into nvault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Santaaa
BANNED
Join Date: May 2012
Old 07-06-2012 , 17:38   Saving ip's into nvault
Reply With Quote #1

Hello there,

i've tryed to save ip's into nvault but it wont work at all. Can someone help me?

Loaddata:
PHP Code:
public LoadData(id)
{
    new 
ip[33]
    
get_user_ip(idip321)
    
    new 
vaultkey[64],vaultdata[256]
    
format(vaultkey,63,"%s-KDRATIO"ip)
    
format(vaultdata,255,"%i#%i#"Kills[id], Deaths[id])
    
nvault_get(g_vault,vaultkey,vaultdata,255)
    
    
replace_all(vaultdata255"#"" ")
    
    new 
kills[32], deaths[32]
    
    
parse(vaultdatakills31deaths31)
    
    
Kills[id] = str_to_num(kills)
    
Deaths[id] = str_to_num(deaths)
    
    return 
PLUGIN_CONTINUE

Savedata:
PHP Code:
public SaveData(id)
{
    new 
ip[33]
    
get_user_ip(idip321)
    
    new 
vaultkey[64],vaultdata[256]
    
format(vaultkey,63,"%s-KDRATIO"ip)
    
format(vaultdata,255,"%i#%i#"Kills[id], Deaths[id])
    
nvault_set(g_vault,vaultkey,vaultdata)
    
    return 
PLUGIN_CONTINUE


Last edited by Santaaa; 07-06-2012 at 17:38.
Santaaa is offline
 


Thread Tools
Display Modes

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 15:13.


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