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
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Dec 24, 2007 9:22 am   

[2.18] %format bug?
 
Came across this interesting bug. Probably has been reported already, but yeah...

Code:
avgdmg=%format(2, %eval( %float( @damage)/%float( @count)))


works fine - it outputs everything correctly. However, if I reformat the script using Ctrl+M (or Editor->Reformat), it changes it to:

Code:
avgdmg=%format( 2, %eval( %float( @damage)/%float( @count)))


Note the space between the %format( and the 2. I'm guessing that's screwing something up because instead of:

Code:
92.31


it continually outputs:

Code:
 2


no matter what the values are for @damage and @count.

Charneus
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Dec 26, 2007 6:38 pm   
 
Bah. Never mind. Apparently, it was still 2.16. Doesn't seem to be a problem in 2.18. I had clicked upgrade, and thought it had completed the upgrade process. :\

Charneus
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