[ASCII 2.0B] [BUG] Do_load and other unstructured items

From: Nick Stout (cyberman_64@HOTMAIL.COM)
Date: 10/15/98


Okay... I have Ascii pfiles, and am doing some surgery on it to make it
work correctly. I also have OLC+2 (the new one. =D)
Anyway, there seems to be a slight problem. I dont see it, but i dont
enjoy playing with completed arrays either. Here's the OUTPUT of the
code:
[    2] [34 Wa] CyberMan     : (NOHOST)           : Thu Oct  1 22:12:18
1998

And the code:
ACMD(do_last);
{
  struct char_data *vict = NULL;

  one_argument(argument, arg);
  if (!*arg) {
    send_to_char("For whom do you wish to search?\r\n", ch);
  return;
  }
     CREATE(vict, struct char_data, 1);
      clear_char(vict);
      CREATE(vict->player_specials, struct player_special_data, 1);
 if (load_char(arg, vict) < 0) {
    send_to_char("There is no such player.\r\n", ch);
    return;
  }
  if ((GET_LEVEL(vict) > GET_LEVEL(ch)) && (GET_LEVEL(ch) <LVL_IMPL)) {
    send_to_char("You are not sufficiently godly for that!\r\n", ch);
return;
  }
  sprintf(buf, "[%5ld] [%2d %s] %-12s : %-18s : %-20s\r\n",
          GET_IDNUM(vict), (int) GET_LEVEL(vict),
          class_abbrevs[(int) GET_CLASS(vict)], GET_NAME(vict),
          vict->player_specials->host && *vict->player_specials->host
          ? vict->player_specials->host : "(NOHOST)",
          ctime(&vict->player.time.logon));
  send_to_char(buf, ch);
}

Any advice? Thanks...

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


     +------------------------------------------------------------+
     | 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