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
harley
Apprentice


Joined: 05 Apr 2008
Posts: 121

PostPosted: Mon Mar 16, 2009 8:00 pm   

%ismember [3.05]
 
Unsure why but All of my trigs using %ismember are now broke
Code:

#if {%ismember ( %1, @Variable) {#say Yes} {#say No}}

It doesnt work anymore. :(
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Mar 16, 2009 8:41 pm   
 
You have the wrong syntax.
Quote:
#if (%ismember( %1, @Variable)) {#say Yes} {#say No}
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Mar 17, 2009 12:54 am   
 
This is going to be true of all your #if commands, not just the %ismember ones. The proper syntax is #if (expression) {true-command} {false-command}, which you'll find in the help.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
harley
Apprentice


Joined: 05 Apr 2008
Posts: 121

PostPosted: Tue Mar 17, 2009 1:40 am   
 
It seems i got a lot of work ahead of me.
It worked before so i just assumed that the newest update broke it
I will get to fixing, thanks guys.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Mar 17, 2009 5:30 am   
 
You could try using a text-editor with a complex regex-based find and replace, exporting your settings to XML, running a find and replace on the contents, and then reloading the new XML. But that's going to be a pretty advanced process because it's going to involve bracket-matching.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Mar 17, 2009 4:51 pm   
 
If you run the Compatibility Report in the settings editor, it should find all of those errors for you.
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