About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Oct 08, 2006 4:01 pm   

#loopview error [1.09]
 
The loopview command is only accepting single line commands.


Code:
#LOOPVIEW {
#show Line %rec
#show Line 2
}


Will not compile.
The compiler gives the error.

Quote:
Error compiling script:
unmatched braces


While this syntax works fine

Code:
#LOOPVIEW {
          #show Line %rec
          }


Compiler gives
Quote:
0000 LINE 2 ; #LOOPVIEW {
0012 PUSHSTRLOC 0028
0020 JUMP 0072
0028 STR ' #show Line '
0060 SYSVAR rec
0068 CONCAT
0072 ARGSTR #show Line %rec

0120 CMD loopview (1)


If you give the view name multiple commands do work.

Code:
#LOOPVIEW All {
#show Line %rec
#show Line 2
}



Quote:
0000 LINE 0 ; #LOOPVIEW All {
0012 STR 'All'
0024 PUSHLOC 0040
0032 JUMP 0116
0040 STR 'Line'
0052 SYSVAR rec
0060 CMD show (2)
0072 LINE 0 ; #LOOPVIEW All {
0084 STR 'Line'
0096 INT 2
0104 CMD show (2)
0116 ARGSTR #show Line %rec
#show Line 2

0188 CMD loopview (2)


Zmud handled the multiple commands fine. I found this while converting scripts. Not complaining! Just trying to help you narrow it down.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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