|
Rousey Newbie
Joined: 14 Jan 2002 Posts: 3 Location: Australia
|
Posted: 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 |
|
|
|
Darker GURU
Joined: 24 Sep 2000 Posts: 1237 Location: USA
|
Posted: 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. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
aggressio Newbie
Joined: 18 Oct 2006 Posts: 2
|
Posted: Sat Nov 18, 2006 9:56 am whitespace |
Perhaps the help file should be updated that whitespace confuses #math.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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.
|
|
|
|
|
|