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
Talahaski
Enchanter


Joined: 10 Oct 2000
Posts: 656
Location: USA

PostPosted: Sun Nov 30, 2003 2:45 am   

Database Variables
 
Does anybody know the command to add a entry to a database variable.

I have a database variable created using the following:
#VARIABLE contents5 {%countlist( @contents4)} {} Container

Now I want to add additional entries to this.

I tried ADDKEY but this does not seem to be the right command:
#ADDKEY @Container/contents5 {key=@Contentskey|val=@ContentsCount}

Variable @Contentskey has my first value in it and @ContentsCount has the count in it.

I also tried:
#ADDKEY Container/contents5 {key=@Contentskey|val=@ContentsCount}
but this is resulting in contents5 getting cleared out

I tried additem also, but this does not seem to work either.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Nov 30, 2003 5:03 am   
 
#ADDKEY contents5 {@Contentskey} {@ContentsCount}
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