Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Felix
Newbie


Joined: 30 Nov 2004
Posts: 2

PostPosted: Tue Nov 30, 2004 6:01 pm   

%match with <@variable>?
 
#var aff1matches %match(&affects,<@DBsearchaff1>(*)By (%n),trash,DBfoundaffval1)

I get a syntax error at the < in <@DBsearchaff1>. Why is this?
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Tue Nov 30, 2004 8:00 pm   
 
Because <> are MapDir characters by default. You have to use ~< to make them a part of the pattern.

Once you fix that. The pattern it will match should/would look like "<variablevalue>123 abcdefgBy 50"

And it will store "123 abcdefg" in the variable @trash and "50" in @DBfoundaffval1.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Dec 01, 2004 9:27 am   
 
The entire pattern should be enclosed in quotes, and you may still have to use the ~ before < and >.
#var aff1matches %match(&affects,"<@DBsearchaff1>(*)By (%n)",trash,DBfoundaffval1)
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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