Raised This Month: $404 Target: $400
 101% 

nVault Tutorial


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-18-2010 , 19:16   Re: nVault
Reply With Quote #21

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 ) ) 
__________________
Bugsy is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-19-2010 , 08:14   Re: nVault
Reply With Quote #22

Thank you Bugsy, now it works ;]
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
lashsh
BANNED
Join Date: Jun 2010
Location: Georgia, Tbilisi
Old 08-28-2010 , 17:48   Re: nVault
Reply With Quote #23

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
lashsh is offline
Send a message via Skype™ to lashsh
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-29-2010 , 08:38   Re: nVault
Reply With Quote #24

Quote:
Originally Posted by lashsh View Post
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
__________________
Bugsy is offline
johnally
Member
Join Date: May 2011
Location: Mauritius
Old 05-11-2011 , 14:43   Re: nVault
Reply With Quote #25

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

What more? gj
__________________
No allowed!

johnally is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-11-2011 , 20:56   Re: nVault
Reply With Quote #26

Quote:
Originally Posted by johnally View Post
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."
__________________
Bugsy is offline
andre neves
Junior Member
Join Date: Mar 2011
Old 10-14-2011 , 18:01   Re: nVault
Reply With Quote #27

PHP Code:
nvault_prune (g_iVault0get_systime() - ( 86400 10) ) 
this will remove all data that are inactive for 10 days?
andre neves is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-14-2011 , 18:29   Re: nVault
Reply With Quote #28

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
__________________

Last edited by Bugsy; 10-14-2011 at 18:32.
Bugsy is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-11-2012 , 14:04   Re: nVault
Reply With Quote #29

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?
__________________
Accepting paid work for clans and communities. !Plugins & Models!
Don't hesitate to contact me.
bibu is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-11-2012 , 06:03   Re: nVault
Reply With Quote #30

Is there a function to prune only one key in a vault file? For example the scores in the example plugin.
__________________
Accepting paid work for clans and communities. !Plugins & Models!
Don't hesitate to contact me.
bibu is offline
Reply


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 14:22.


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