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
Ayclaes
Newbie


Joined: 31 Mar 2005
Posts: 9

PostPosted: Thu Nov 17, 2005 10:32 pm   

Problem with Variable assignment
 
Hopefully a quick question:


#IF (@current_delay = 0) {
#ADD current_delay [%1+1]
LA_delay = [%1+1]
} {current_delay = [@current_delay+%1+1]
LA_delay = [@current_delay+%1+1]
}

LA_delay =%1+1 won't evaluate. I added [] and it evaluates the expression. ZMud gives me a syntax error but it does work. How else can I evaluate this expression?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Nov 17, 2005 11:15 pm   
 
%eval()
_________________
EDIT: I didn't like my old signature
Reply with quote
Ayclaes
Newbie


Joined: 31 Mar 2005
Posts: 9

PostPosted: Mon Nov 21, 2005 10:56 pm   
 
Excellent, thanks. I'm not sure how I forgot to try that.
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