Raised This Month: $ Target: $400
 0% 

Using vault...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-25-2006 , 02:52   Using vault...
Reply With Quote #1

I would like to know how to properly use vault so that I can write info to a vault file. I am trying to write a plugin that will write a persons steamid and all their names to this file so that it may be viewed at a later time. Could anyone help me to understand how to use vault for something like this? Thanks
organizedKaoS is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-25-2006 , 03:00  
Reply With Quote #2

Code:
// vault.inc /* Reads a data from given key. * If len is set to zero then get_vaultdata * returns value as an number. */ native get_vaultdata(const key[], data[] = "", len = 0); /* Sets a data under given key. */ native set_vaultdata(const key[], const data[] = "" ); /* Removes a key from vault.*/ native remove_vaultdata(const key[]); /* Checks if a key exists in the vault.*/ native vaultdata_exists(const key[]);

Example of set_vaultdata:
Code:
set_vaultdata("key", "data here")
I believe output would be:
Code:
"key" "data here"
VEN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-25-2006 , 03:05  
Reply With Quote #3

nVault is better than regular Vault.
__________________
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
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 03-25-2006 , 03:09  
Reply With Quote #4

Quote:
Originally Posted by v3x
nVault is better than regular Vault.
Differences please?
organizedKaoS is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-25-2006 , 03:25  
Reply With Quote #5

nVault is faster and it supports multiple vault files, timestamps, etc.
__________________
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
Rixorster
Senior Member
Join Date: Jul 2005
Old 03-25-2006 , 03:30  
Reply With Quote #6

Can ya show like code example how to write to vault? i need this too
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!
Rixorster is offline
Reply



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


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