[Circle][Newbie] Auto exits

From: Andrew Shryock (bp059@yfn.ysu.edu)
Date: 08/27/96


Sorry for not making myself clear, but you didn't have to scream.

When I compile the code I get the message: Too few arguments in do_auto_exits
function.

I can't find anything missing in this function.

PLease someone help...
]
I don't know wether the error is somewhere else or whether it is the function
itself.

Here's the code:

ACMD(do_auto_exits)
{
  int door;
/* Auto Exits. Shows room names insted of n s e w etc. -NM*/
  *buf = '\0';

  for (door = 0; door < NUM_OF_DIRS; door++)
    if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE &&
        !IS_SET(EXIT(ch, door)->exit_info, EX_CLOSED)) {
      if (GET_LEVEL(ch) >= LVL_IMMORT)
        sprintf(buf2, "%-5s - [%5d] %s\r\n", dirs[door],
                world[EXIT(ch, door)->to_room].number,
                world[EXIT(ch, door)->to_room].name);
      else {
        sprintf(buf2, "%-5s - ", dirs[door]);
        if (IS_DARK(EXIT(ch, door)->to_room) && !CAN_SEE_IN_DARK(ch))
          strcat(buf2, "Too dark to tell\r\n");
        else {
          strcat(buf2, world[EXIT(ch, door)->to_room].name);
          strcat(buf2, "\r\n");
        }
      }
      strcat(buf, CAP(buf2));
    }
  send_to_char("Obvious exits:\r\n", ch);

  if (*buf)
    send_to_char(buf, ch);
  else
    send_to_char(" None.\r\n", ch);
}

Thanks a whole bunch!!!

-Bailin Administrator of Black Blade

sinope.stayfree.co.uk 4000

+-----------------------------------------------------------+
| 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/07/00 PST