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: Tue Jul 15, 2008 12:09 am   

[2.30] Bug in syntax checker
 
In the line:

#FILE 3 %concat( %replace( %right( {%session.cMUDFileName("","")}, 2), "\", "/"), %replace( %replace( %db( @continentmapnumbers, @previouscontinentnumber), ",", ""), " ", "_"), "_MAP.txt")

the syntax checker incorrectly states the %right is closed by the ) in ("","") when it should be after the ,2.

I'm assuming it has something to do with the {} in it, but I could be wrong. This is a script I'm converting over to CMUD. Any suggestions would be appreciated!

Charneus
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jul 15, 2008 4:35 pm   
 
You don't need the {} around the %session function inside the %right function. The correct syntax is:

#FILE 3 %concat( %replace( %right( %session.cMUDFileName("",""), 2), "\", "/"), %replace( %replace( %db( @continentmapnumbers, @previouscontinentnumber), ",", ""), " ", "_"), "_MAP.txt")

Whenever there is a syntax error, the syntax highlighter can't color code or match parenthesis properly. So always check with Ctrl-K to make sure there isn't a syntax error.
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