|
robecks Beginner
Joined: 22 Jun 2010 Posts: 17
|
Posted: Mon Jul 12, 2010 8:57 pm
3.21 braces unmatched |
i know normally you are susposta upgrade to the lastest beta but i have seen a few problems with 3.22 that i do not want to quite upgrade yet, so i dont know if this was tackled
the line below is giving me a braces unmatched, or not enough paramaters if i use #show and just try to pop it up
Code: |
%right( %session.cMUDFileName("",""), 2) |
but if i remove the %right it works just fine |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jul 12, 2010 10:21 pm |
I think it is just supposed to be %session.FileName and not %session.cMUDFileName, but when I do this:
Code: |
#show %right(%session.FileName("",""),2) |
it also gives a "not enough parameters" in 3.22 so I've added that to the bug list. The issue is doing the COM reference within the other function. To make this work for now you need to do it in two steps:
Code: |
$filename = %session.FileName("","")
#SHOW %right($filename,2) |
|
|
|
|
robecks Beginner
Joined: 22 Jun 2010 Posts: 17
|
Posted: Mon Jul 12, 2010 10:55 pm |
if i try it #show %session.FileName("","") it does not work in 3.21
if i do #show %session.cMUDFileName("","") it outputs C:\Users\my computer\Documents\My Games\CMUD\Aardwolf\ |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Jul 13, 2010 1:46 am |
Regarding 'quite a few problems with 3.22,' that's the whole purpose of beta testing. If you're going to use beta, test properly. Problems can't be fixed unless Zugg knows about them. Also, 3.21 was worse than 3.22 regarding stability...
Charneus |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jul 13, 2010 5:52 pm |
Oops, I was testing in TeSSH instead of CMUD. In TeSSH it is %session.FileName. In CMUD it is %session.cMUDFileName. Sorry for that.
|
|
|
|
|
|