Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: Exolent[jNr]
Forum: Code Snippets/Tutorials 02-18-2012, 22:48
Replies: 132
Sticky: nVault Tutorial
Views: 161,390
Posted By Exolent[jNr]
Re: nVault

Yeah, I wasn't thinking when I used the wrong operator. :grrr:
Forum: Code Snippets/Tutorials 02-18-2012, 19:33
Replies: 132
Sticky: nVault Tutorial
Views: 161,390
Posted By Exolent[jNr]
Re: nVault

Change

nvault_prune_key(g_score_vault, szDeathKey, get_systime(), 86400 * get_pcvar_num(amx_death_expire_days))
to

nvault_prune_key(g_score_vault, szDeathKey, 0, get_systime() - (86400 *...
Forum: Code Snippets/Tutorials 02-16-2012, 12:28
Replies: 132
Sticky: nVault Tutorial
Views: 161,390
Posted By Exolent[jNr]
Re: nVault

Use nvault_set() to update your data and the timestamp will update, too.



Well the whole point of "keys" are that they are unique in the vault.
If it were to create new entries instead of...
Forum: Code Snippets/Tutorials 02-11-2012, 15:46
Replies: 132
Sticky: nVault Tutorial
Views: 161,390
Posted By Exolent[jNr]
Re: nVault

/* Prunes a specific key in the vault if it is within the given timestampps
* This will not erase values set with pset
*/
stock nvault_prune_key(vault, const key[], start, end) {
new...
Forum: Code Snippets/Tutorials 01-14-2010, 00:39
Replies: 132
Sticky: nVault Tutorial
Views: 161,390
Posted By Exolent[jNr]
Re: nVault

stock nvault_timestamp(const vault, const key[]) {
static data[2], timestamp;
return nvault_lookup(vault, key, data, charsmax(data), timestamp) ? timestamp : 0;
}
Forum: Code Snippets/Tutorials 05-02-2009, 13:34
Replies: 132
Sticky: nVault Tutorial
Views: 161,390
Posted By Exolent[jNr]
Re: nVault

Good job! I always wanted to know how to use the prune function.

public cmdSaveScore(id)
{
//Save 2 items into the value of the entry.
//Example: STEAM_0:0:1234 15 5

new szData[8];
new...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -4. The time now is 18:32.


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