Re: Color

From: George Greer (greerga@circlemud.org)
Date: 12/29/99


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?

You didn't add '%s' to the format string for the color codes to be in.

--
George Greer            | Sammy's Code - OBuild
greerga@circlemud.org   | http://users.ticnet.com/samedi/code.html


     +------------------------------------------------------------+
     | 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