Raised This Month: $ Target: $400
 0% 

Removing vault data with nVault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-21-2006 , 07:24   Removing vault data with nVault
Reply With Quote #1

Is this how I would do it?
Code:
nvault_set(vault , key , "");

I'm trying to remove a SteamID from a vault file by command and doesn't want to work:
Code:
public concmd_removesteam(id , lvl , cid) {     if(!cmd_access(id , lvl , cid , 2))         return PLUGIN_HANDLED;     new arg[33];     read_argv(1 , arg , 32);     vault = nvault_open(VAULT_NAME);     if(vault == INVALID_HANDLE)     {         console_print(id , "[AMXX] Error opening vault file: %s" , VAULT_NAME);         return PLUGIN_HANDLED;     }     remove_quotes(arg);     trim(arg);     new temp[9] , timestamp;     if(!nvault_lookup(vault , arg , temp , 8 , timestamp))     {         console_print(id , "[AMXX] That STEAMID doesn't exist!");         nvault_close(vault);         return PLUGIN_HANDLED;     }     nvault_set(vault , arg , "");     nvault_close(vault);     new steamid[33] , players[32] , num , i;     for(i = 0; i < num; i++)     {         get_user_authid(players[i] , steamid , 32);         if(equal(steamid , arg))             flagged[players[i]] = false;     }     console_print(id , "[AMXX] %s removed from vault file: ^"%s^"" , arg , VAULT_NAME);     return PLUGIN_HANDLED; }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 05:00.


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