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


Joined: 09 Jun 2002
Posts: 186
Location: USA

PostPosted: Fri Jul 11, 2003 6:07 pm   

Naming Vars
 
I have a variables called @DNumber1 thru @Dnumber10


#While (@temp <> @max+1) {#If (%item( @Players, @temp) <> "") {
say Player @temp-%item( @Players, @temp), Number-@DNumber(@temp), Guild-@Dguild(@temp)
#ADD temp 1
#WA 1000
}} {}


I am using that script to output the players that are playing. The problem I am running into is where it says Number-@DNUMBER@TEMP and the same with guild. I want that to translate to @DGuild1, @Guild2, etc. But it isn't.

How can I make it so it is?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jul 11, 2003 10:27 pm   
 
You need to use braces instead of parenthesis and in a way a bit different:
@{DNumber@temp}

and:
@{Dguild@temp}
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