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

[Nvault] Nvault_pset, prune crash server! :(


  
 
 
Thread Tools Display Modes
Author Message
jeppelykke
Member
Join Date: May 2005
Location: Hjørring, Denmark
Old 12-01-2006 , 16:49   [Nvault] Nvault_pset, prune crash server! :(
#1

Hey Hey

I have a mod that gives people levels ect on every kill... What i need to do is i have a MAX level a person can have than i want that informationer put into nvault to use on next map for some bonus.... Each players is also saved Level pr MAP incase of disconnect, and reconnect ect...

But when i set a person idendt with: nault_pset and the server changemap and preforms the "prune" command, then the server lags/stops responding.


Code:
new LevelVault;

public plugin_init()
{
	register_plugin(JL_PLUGIN, JL_VERSION, JL_AUTHOR)
	register_event("DeathMsg", "new_kill", "a", "1>0")
	LevelVault=nvault_open("player_levels");
	nvault_prune(LevelVault,0,0);
}

public client_disconnect(id)
{
	new AuthID[40];
	get_user_authid(id,AuthID,39);  
	new Value[32];
	formatex(Value,31,"%d",Level[id]);
	nvault_set(LevelVault,AuthID,Value);
	return PLUGIN_HANDLED
}

public new_kill(id)
{
	new KillerID = read_data(1)
	new VictimID = read_data(2)
	if(Level[KillerID] == 26)
	{
		new infoset[32]
		format(infoset,31 , "%s",KillerID) 
		nvault_pset(LevelVault,"Round_Bonus",infoset);
		return PLUGIN_HANDLED
	} 
}
Attached Files
File Type: zip nvault.zip (315 Bytes, 86 views)
__________________
Best Regards
Jeppe Lykke, Denmark

Last edited by jeppelykke; 12-01-2006 at 16:55. Reason: Spelling errors
jeppelykke is offline
Old 12-01-2006, 23:33
tinlab
This message has been deleted by BAILOPAN. Reason: I don't recall you being a moderator
Old 12-02-2006, 23:54
tinlab
This message has been deleted by BAILOPAN. Reason: you're not a moderator
Old 12-03-2006, 02:24
BAILOPAN
This message has been deleted by BAILOPAN.
BAILOPAN
Join Date: Jan 2004
Old 12-18-2006 , 22:33   Re: [Nvault] Nvault_pset, prune crash server! :(
#2

Thanks for the helpful report! This has been fixed as revision 3178.
__________________
egg
BAILOPAN is offline
 



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 06:26.


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