AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   nVault Tutorial (https://forums.alliedmods.net/showthread.php?t=91503)

Bugsy 08-18-2010 19:16

Re: nVault
 
PHP Code:

            new szData1], szData2], szData3], szData4], szData5], szData6]
            
formatexszData1iSpacePos"%s"szData )
            
formatexszData23"%s"szDataiSpacePos ] )
            
formatexszData33"%s"szData2iSpacePos ] )
            
formatexszData43"%s"szData3iSpacePos ] )
            
formatexszData53"%s"szData4iSpacePos ] )
            
formatexszData64"%s"szData5iSpacePos ] ) 

I haven't looked over everything closely but the above code is most likely the problem. Try this:

PHP Code:

            new szData1], szData2], szData3], szData4], szData5], szData6]
        
            
parseszData szData1 charsmaxszData1 ) ,
              
szData2 charsmaxszData2 ) ,
              
szData3 charsmaxszData3 ) ,
              
szData4 charsmaxszData4 ) ,
              
szData5 charsmaxszData5 ) ,
              
szData6 charsmaxszData6 ) ) 


NiHiLaNTh 08-19-2010 08:14

Re: nVault
 
Thank you Bugsy, now it works ;]

lashsh 08-28-2010 17:48

Re: nVault
 
XP title e.g 1 kill 10 XP, and 800 XP title serious player
XP

PHP Code:

0 XP 
100 XP 
200 XP 
400 XP 
800 XP 
1600 XP 
3200 XP 

Tittles

PHP Code:

0 XP lamer 
100 XP Beginner 
200 XP Amateur 
400 XP Professional 
800 XP Master 
1600 XP Igrok 
3200 XP Counter
-Strike Pather 

pleace give me this plugin or create

Bugsy 08-29-2010 08:38

Re: nVault
 
Quote:

Originally Posted by lashsh (Post 1284561)
XP title e.g 1 kill 10 XP, and 800 XP title serious player
XP

pleace give me this plugin or create

http://forums.alliedmods.net/showpos...54&postcount=6

johnally 05-11-2011 14:43

Re: nVault
 
Sockets + php to handle real important database stuff.
nVault to logs less important temporary data.

What more?:) gj

Bugsy 05-11-2011 20:56

Re: nVault
 
Quote:

Originally Posted by johnally (Post 1467607)
Sockets + php to handle real important database stuff.
nVault to logs less important temporary data.

What more?:) gj

Thanks for your informative contribution to the thread! Contrary to your opinion, nVault can be used for storing "important permanent data" as well as "less important temporary data."

andre neves 10-14-2011 18:01

Re: nVault
 
PHP Code:

nvault_prune (g_iVault0get_systime() - ( 86400 10) ) 

this will remove all data that are inactive for 10 days?

Bugsy 10-14-2011 18:29

Re: nVault
 
That will delete entries that are older than 10 days.

nvault_prune( Vault , start time , end time )

All entries that fall within starting and ending time are deleted.

0 = start of time
get_systime() = now
86400 * 10 = 10 days

bibu 01-11-2012 14:04

Re: nVault
 
Is there a way, that it loads the nvault but doesn't create a file in data/vault ?

I've tried this in CS and it did create one but it seems like I can't get this to working in TFC. Could you maybe have a look bugsy?

bibu 02-11-2012 06:03

Re: nVault
 
Is there a function to prune only one key in a vault file? For example the scores in the example plugin.


All times are GMT -4. The time now is 21:40.

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