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

FVault - A new vault system!


Post New Thread Reply   
 
Thread Tools Display Modes
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 07-03-2010 , 17:23   Re: FVault - A new vault system!
Reply With Quote #41

Quote:
Originally Posted by Kreation View Post
If I have this code:

Code:
SaveXP(id) {      new steamid[35];      get_user_authid(id, steamid, 34);      new data[20];      num_to_str(g_xp[id], data, sizeof(data) - 1);      fvault_set_data(g_vault, steamid, data); }

and I have more to save can I just do this:

Code:
SaveXP(id) {      new steamid[35];      get_user_authid(id, steamid, 34);      new data[20];      num_to_str(g_xp[id], data, sizeof(data) - 1);      num_to_str(g_level[id], data, sizeof(data) - 1);      fvault_set_data(g_vault, steamid, data); }

Or is it more complex than that?
PHP Code:
SaveXP(id)
{
     new 
steamid[35];
     
get_user_authid(idsteamid34);

     new 
data[20];
     
formatex(datacharsmax(data), "%d %d"g_xp[id], g_level[id]);

     
fvault_set_data(g_vaultsteamiddata);

AfteR. is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-03-2010 , 23:59   Re: FVault - A new vault system!
Reply With Quote #42

Yeah, that's what I did.
__________________
Hi.
Kreation is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 02-06-2011 , 19:26   Re: FVault - A new vault system!
Reply With Quote #43

After this update I get this warning:
PHP Code:
//// plugin.sma
// C:\AMX Mod X\addons\amxmodx\scripting\include\fvault.inc(379) : warning 203:
symbol is never used"len" 
And my plugin does not work correctly.
BackStats is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-06-2011 , 23:22   Re: FVault - A new vault system!
Reply With Quote #44

Quote:
Originally Posted by BackStats View Post
After this update I get this warning:
PHP Code:
//// plugin.sma
// C:\AMX Mod X\addons\amxmodx\scripting\include\fvault.inc(379) : warning 203:
symbol is never used"len" 
And my plugin does not work correctly.
Sorry, I thought I had fixed that already, but it is fixed now. Also, I added fvault_load() to the include.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-07-2011 , 05:26   Re: FVault - A new vault system!
Reply With Quote #45

Very good! I went to test it.

I like nVault system!
__________________
The functional way is the right way
GordonFreeman (RU) is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 02-09-2011 , 22:47   Re: FVault - A new vault system!
Reply With Quote #46

After your updates for this plugin is not banning the players.
http://forums.alliedmods.net/showpos...95&postcount=9

The ids are logged to the file: .../data/file_vault_disconnect_bans.txt
But he did not forbid the players.

Last edited by BackStats; 02-10-2011 at 07:45.
BackStats is offline
fmfs10
Senior Member
Join Date: Mar 2009
Location: Brasil
Old 03-14-2011 , 19:34   Re: FVault - A new vault system!
Reply With Quote #47

On this Save Method there is a possibility to save wrong data? I'm asking this because I have a SuperHero Mod server and sometimes Nvault save wrong. So I put SQL and it's too slow... So i'm thinking to create another save method, maybe fvault
fmfs10 is offline
Erox902
Veteran Member
Join Date: Jun 2009
Location: Never Never Land
Old 03-18-2011 , 11:00   Re: FVault - A new vault system!
Reply With Quote #48

Kind of annoying question but wth is wrong with this save and load function?

Code:
public SaveExp(id)
{
	if( get_pcvar_num(Eexp_on) == 1)
	{
		new steamid[35];
		get_user_authid(id, steamid, 34);
		
		new data[20];
		format(data, 19, "%i#%i#", g_exp[id], g_lvl[id])
		
		fvault_set_data(g_vault_name, steamid, data);
	}
}
Code:
public LoadData(id)
{
	if (get_pcvar_num(Eexp_on) == 1)
	{
		new steamid[35];
		get_user_authid(id,steamid,34);
		
		new data[20]
		format(data, 19, "%i#%i#", g_exp[id], g_lvl[id]);
		replace_all(data, 19, "#", " ");
		fvault_get_data(g_vault_name, steamid, data);

		new userxp[32], userlevel[32];
		parse(data, userxp, 31, userlevel, 31);
		
		g_exp[id] = str_to_num(userxp);
		g_lvl[id]  = str_to_num(userlevel);
		ColorChat(id, GREEN, "your exp has successfuly loaded!");
	}
}
i get an error like "number of arguments does not match definition" in he load function on this line:
Code:
fvault_get_data(g_vault_name, steamid, data);
Erox902 is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 03-18-2011 , 11:33   Re: FVault - A new vault system!
Reply With Quote #49

Quote:
Originally Posted by Erox902 View Post

"number of arguments does not match definition"

Code:
fvault_get_data(g_vault_name, steamid, data);
Code:
fvault_get_data(const vaultname[], const key[], data[], len, &timestamp=0)

If that didn't give you hint, look at the first page example.

Last edited by matsi; 03-18-2011 at 11:45.
matsi is offline
Killer zm
Senior Member
Join Date: Jun 2011
Old 06-25-2012 , 05:39   Re: FVault - A new vault system!
Reply With Quote #50

why when an player is connecting on my server and load from fvault he have some lantern effects colored ? where can be the problem ?

effects look like this



Last edited by Killer zm; 06-25-2012 at 06:01.
Killer zm 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 04:40.


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