Re: [code] [prob]

From: Thomas Pedersen (classic@cloud9.net)
Date: 10/23/96


On Wed, 23 Oct 1996 mch@GLADSTONE.UOREGON.EDU wrote:

>       CREATE(victim, struct char_data, 1);
>       clear_char(victim);
>       if (load_char(argument, &tmp_store) > -1) {
>         store_to_char(&tmp_store, victim);
>         sprintf(buf, "%sLevel %d %s\r\n", buf, GET_LEVEL(victim),
>                 class_abbrevs[(int) GET_CLASS(victim)]);
>         send_to_char(buf, ch);

You have crap in buf already. As far as I can tell you don't have to
append buf before 'Level', since you are not looping. 

 sprintf(buf, "Level %d %s\r\n", GET_LEVEL(victim)....etc.)


Should fix it.

* Classic@Cloud9.net * tpedersen@kraft.com *
* http://www.cloud9.net/~classic *
* visit Darklord MUD at pody.westnet.com 5000 *

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



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