On Sat, May 18, 2002 at 08:09:53PM -0400, Mike wrote:
> I'm using Lope's Colour...my question - How can I add the colours to
> variables? Not character strings...variables.
> ex:
> send_to_char("{RYadda Yadda", ch);
> that's very easy...then you have something like:
> sprintf(buf,ch);
> now, I know that I could easily just go find the buf char and add colour to
> the string...but how can i add colour to that so that no matter what the
> input is, the output will always be a colour, or just something like that.
> For example, when the name of a room is read or the keyword on the help
> files is read, have them displayed in colour. does that make sense? I know
> that I just don't use:
> sprintf({rbuf,ch);
man sprintf says:
sprintf(char *str, const char *format, ...);
So it would become:
sprintf(buf,"{r%s",ch);
Edwin
ps. I don't know who has taught you how to use sprintf(), but you
might want to check some reference manuals regarding its usage.
--
Edwin Groothuis | Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
bash$ :(){ :|:&};: | http://www.FatalDimensions.org/