|
Sunhaha Newbie
Joined: 08 Nov 2009 Posts: 2
|
Posted: 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? |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
|
|