I believe that the GET_SEX(ch) evalutes to a number. Check the do_stat_character function. switch (GET_SEX(ch)) { case SEX_NEUTRAL: strcpy(buf, "NEUTRAL-SEX"); break; case SEX_MALE: strcpy(buf, "MALE"); break; case SEX_FEMALE: strcpy(buf, "FEMALE"); break; default: strcpy(buf, "ILLEGAL-SEX!!"); break; } then replace GET_SEX(ch) with buf and that should work. Shaun Bourque wrote: > just wanted to add a line to my score sheet, didnt think i'd hafta call > congress for a vote. > when compiling gives me these errors > warning: format argument is not a pointer (arg 5) > warning: format argument is not a pointer (arg 6) > warning: format argument is not a pointer (arg 7) > > and refers to this line of code > > sprintf(buf, "%s: You are a %d year old %s %s %s. Your level is %d.", > GET_NAME(ch), GET_AGE(ch), GET_SEX(ch), GET_RACE(ch), GET_CLASS(ch), > GET_LEVEL(ch)); > send_to_char(buf, ch); > > what am i doing wrong? cant even find arg 7. these GET_'s appear in other > parts of the do_score, and in db.c the st->sex = GET_SEX(ch); st->class = > GET_CLASS(ch); st->race = GET_RACE(ch) etc, and GET_SEX(ch) = st->sex; > GET_CLASS(ch) =st->class; GET_RACE(ch) = st->race;etc all exist. > any help would be appreciated. > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.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