Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Corleidum
Novice


Joined: 30 Apr 2003
Posts: 43
Location: Sweden

PostPosted: Sat Apr 17, 2004 4:12 am   

removin from %db?
 
this is something I have

#IF (%db( @Fcount, @wfind)) {#ADDKEY Fcount @wfind %eval( 1 + %db( @Fcount, @wfind))} {#ADDKEY Fcount @wfind 1}

Now, this is made for a search engine. So if people say "find this" I will find it, max limit is 10 times.

Now I wonder, after 10 times, I want it to tell this person that ran out of find requests.
And then, I want it to remove his name from the Fcount..
How?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Apr 17, 2004 1:03 pm   
 
You can use #DELKEY to remove a key-value pair from a record variable.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Apr 17, 2004 3:32 pm   
 
Of course, once you remove his name from Fcount he'll be back to a count of zero and be able to ask for another ten items.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net