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
Sunhaha
Newbie


Joined: 08 Nov 2009
Posts: 2

PostPosted: Sun Nov 08, 2009 4:05 pm   

unmatched braces error
 
#if (@spforce < @lv) {@curr_train = necro-force} {#if (@spspecial < @lv) {@curr_train = necromancy} {#if (@force < @lv) {@curr_train = force} {#if (@dodge < @lv) {@curr_train = dodge} {#if (@special < @lv) {@curr_train = special}}}}}
research @curr_train 10

I can use this in zmud but not cmud
are there sonething wrong?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Nov 08, 2009 4:20 pm   
 
Your syntax for var=value is wrong. It should be:

Variable=value

and not:

@variable=value

Your script should read like this:

Code:
#IF (@spforce<@lv) {curr_train="necroforce"} {#IF (@spspecial<@lv) {curr_train="necromancy"} etc...


Hope this helps.

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