|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|
|
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
|
|