Re: [CODE][SEMI-NEWBIE]

From: Tony Robbins (robbinsw@ucs.orst.edu)
Date: 03/27/00


-----Original Message-----
From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca]On Behalf Of
Ryan Le Gros
Sent: Sunday, March 26, 2000 23:13 PM
To: CIRCLE@post.queensu.ca
Subject: [CIRCLE] [CODE][SEMI-NEWBIE]

[snip]
          sprintf(buf, "%s %s is a level %d %s %s %s,\r\n",
                GET_NAME(victim),
                (victim->player.title),
                GET_LEVEL(victim),
                GET_SEX(victim),
                pc_race_types[(int) GET_RACE(victim)],
                pc_class_types[(int) GET_CLASS(victim)]);
[snip]

1.  Find arg6 (hint: buf and "%s %s is...%s,\r\n" are both args).
2.  Find out the data type that the macro points to.
3.  Find out how it is being referred to in the format string "%s
%s...%s,\r\n".
4.  Correct any issues you find.

I think I snipped a little too much of the message, but this should help you
with any other format errors you run into.

-k.


     +------------------------------------------------------------+
     | 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 : 04/10/01 PDT