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


Joined: 24 Jan 2003
Posts: 6

PostPosted: Fri Jan 24, 2003 3:57 pm   

need some help about function '%concat()'
 
I'm useing 4.62.

now,i have a problem about '%concat()'.
I want to link some strings such as '#loop {10,20} hit xxx %i'.
As is known,the ',' is the septerator of arguments of the function,how can i insert a ',' into a string?
in addition,after operated by the function,'%i' became '%{i}'.

I tried to use a expression like this: hm=%concat(@hm,#loop {10,',',20} hit xxx %,i),and got the right result,but it have no effect in a big command '#if'.

how can i do?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jan 24, 2003 6:34 pm   
 
First, be aware that you are two major versions and several public versions behind. The first public version 5 came out almost 5 years ago and the first public version 6 came out over 2 years ago. Many commands and functions have been added over those 5 years and many others have had their capabilities extended. This means that in many cases, the solutions we suggest may not work for you because they depend on those added/improved commands and functions and it's up to you to recognize when this happens.

Why use %concat? Just make the variable directly:
hm=@hm"#LOOP 10,20 hit xxx %i"

As you've already noticed, it's not enough to get the desired value into the variable. However, without specifics on what you're actually trying to do I can't suggest any better methods.

LightBulb
Senior Member
Reply with quote
cuff
Newbie


Joined: 24 Jan 2003
Posts: 6

PostPosted: Sat Jan 25, 2003 5:45 am   
 
First,thank to your suggestion.
Second,i can't afford the latest version. the Configuration of my computer is too old,and i'm afraid that it can't run the program easily.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Jan 25, 2003 10:58 pm   
 
Why can't it run the new version? zMUD works fine in some very old computers.

Kjata
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