Re: Color

From: Todd A Laycock (tlayco1@uic.edu)
Date: 12/28/99


I'm willing to bet somewhere in those errors was a warning about too few
arguments for format?

CCRED and CCCYN are both char *, which means you have to add a %s in the
format where you want to use them. I think (judging on what you wrote),
what you want to do is this:

  count += sprintf(prompt + count, "%s%d%s(%s%d%s)Hitp ",
        CCRED(ch, C_NRM), GET_HIT(d->character), CCNRM(ch, C_NRM),
        CCCYN(ch, C_NRM), GET_MAX_HIT(d->character), CCNRM(ch, C_NRM));


On Wed, 29 Dec 1999, Manafort wrote:

> if (PRF_FLAGGED(d->character, PRF_DISPHP))
>       count += sprintf(prompt + count, "%d(%d)Hitp ", CCRED(ch, C_NRM),
> GET_HIT(d->character),GET_MAX_HIT(d->character),CCCYN(ch, C_NRM));
>
> and got umm well over 35 errors. so im hoping there is an easier way?
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST