Daniel's do_who and races

From: Rob O'Connor (rene@EDENEAST.COM)
Date: 03/13/98


CI>This is a fun one - I'm sure I'm missing something really simple
CI>here, but my brain's fried, and I can't find it to save my life.

CI>I'm running slightly modified circle 3.0 bpl 12.
CI>When trying to add a race column to "do_who" in
CI>act.informative.c, like so:

CI>sprintf(Mort_buf, "%s[%2d %s %s] %s %s", Mort_buf, GET_LEVEL(wch),
CI>              GET_RACE(wch), CLASS_ABBR(wch), GET_NAME(wch),
CI>              GET_TITLE(wch));

CI>or like so:

CI>sprintf(Mort_buf, "%s[%2d %s %s] %s %s", Mort_buf, GET_LEVEL(wch),
CI>              ((wch)->player.race), CLASS_ABBR(wch), GET_NAME(wch),
CI>              GET_TITLE(wch));

CI>I get the same warning on compilation:

CI>act.informative.c:1045: warning: format argument is not a pointer
CI> (arg 5)

CI>I'm stumped...GET_CLASS and GET_NAME, but no GET_RACE?
CI>It's used several times in other portions of the code, but
CI>I can't seem to get it to work here.
CI>Anyways, thanks in advance.

CI>Yert
CI>(yert@mad.scientist.com)

CI>--
CI>Trey B. Shewmake                                  yert@mad.scientist.com
CI>Traveller: The Spinward Marches MUD         crazy.net 9999
CI>                         http://www.crazy.net/~spinward



if you are using the race code from the ftp site GET_RAC should be
RACE_ABBR(wch)
also change %s to %d(for the race).. that should take care of your
problem.
unless GET_RACE is how you defined your races then just change the %s..
I use race_abbr on mine..


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



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