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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Mar 04, 2008 3:02 am   

[2.18] Disappearing Variables
 
I've had a problem with variables not updating properly, and some variables that I set (record vars are the ones I usually notice) are deleting themselves after exitting cMUD. I have my packoff off read-only mode, and I have the shared box unchecked(just trying this now to see if I have better results. I wish I could provide some steps to reproduce this, but I'm hoping that maybe somebody else has already encounterred this problem. I tried searching the forums...but I'm not a fan of the new search so I couldnt find anything relevent. Thanks for any help.

alias that my variable isn't working with:

znote add 'blah'
znote delete #

Code:

#if (%1 = add) {
 #addkey notes %eval(%numkeys(@notes)+1) %-2
 #EXECWIN notes {#CLR}
 #EXECWIN notes {#showdb @notes}
}
#if (%1 = delete) {
 #EXECWIN Notes {#CLR}
 #SWITCH (%2 = %numkeys(@notes)) {#delkey notes %2} (%2 = all) {notes=""} {#LOOP %2,%eval(%numkeys(@notes)-1) {#addkey notes %i %db(@notes,%eval(%i+1))}
 #delkey notes %eval(%numkeys(@notes))}
 #EXECWIN Notes {#showdb @notes}
}


Notes is not retaining its value after I exit/restart CMUD. Also, there are no other variables named Notes, or any other call to set this variable, no events, ect.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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