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


Joined: 14 Jan 2002
Posts: 3
Location: Australia

PostPosted: Wed Jan 16, 2002 1:38 pm   

#math() and variables
 
my main problem is with lines like the following:

#MATH qsec3 @qtime260

why is the modulus expression not functioning for me? just qtime2 is going into qsec3, and is getting turned into a class folder.. same thing has happened with a few other mathematic symbols as well in other lines of code.. just the modulus one thats bugging me the most though.




------
'We went in Mad.. ..we came out insane!' - Rousey
Reply with quote
Darker
GURU


Joined: 24 Sep 2000
Posts: 1237
Location: USA

PostPosted: Wed Jan 16, 2002 2:27 pm   
 
Just tested this in 6.25a (beta) and it works for me. Might be specific to your version but I've never heard of anybody else having this problem.

I would make sure that @qtime2 is definitely a number before running the command, but even if it's not I can't see why it would behave as you described.



zMUD 6 Online Help: All the power you'll ever need.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jan 16, 2002 5:10 pm   
 
Just tested it in 6.16 and it worked fine. However, since you don't have braces around @qtime260, if you left a space before the (or have one included at the end of the variable) it would be interpreted as the next parameter which would be the class. Quickest fix would be to put braces around it

#MATH qsec3 {@qtime260}

LightBulb
All scripts untested unless otherwise noted
Reply with quote
aggressio
Newbie


Joined: 18 Oct 2006
Posts: 2

PostPosted: Sat Nov 18, 2006 9:56 am   whitespace
 
Perhaps the help file should be updated that whitespace confuses #math.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Nov 18, 2006 10:40 am   
 
Wow, threadromancy :O Is this still an issue? You can add a comment to the #math entry in the knowledgebase if it is.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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