Re: [Code] A couple things please

From: Richard Glover (
Date: 02/02/99

A common debugging tool in this case would be to put log("%s",
variable_in_question); statements inside the problem function in question.
You can use this to actually see what is interpreted as the target's name
and then see what the result was afterwards or why the result was NULL.
It'll take some testing, but you'll get it.


  /* third arg: player's name */
  one_argument(arg, arg1);
  if (!*arg1) {
    send_to_char(HCONTROL_FORMAT, ch);
  log("Player name: %s", arg1);

  if ((owner = get_id_by_name(arg1)) < 0) {
    sprintf(buf, "Unknown player '%s'.\r\n", arg1);
    send_to_char(buf, ch);
    log("Returned 'owner' of: %d", owner);

-----Original Message-----
From: Jon Knapp <>
To: <>
Date: Tuesday, February 02, 1999 4:29 PM
Subject:  [Code] A couple things please

>Ok, I have a couple things.
>1)  Ok , I am using circle30bpl14 with oasis olc with dgscritps.  I have no
>prbs wiht it except.  When I try to build a house for someone.  It never
>recognized the player name.  Not even mine.  Any help would be greatly
>2)  Can someone suggest a good forge snippet?
>Thanks to you all , and sorry to bother the list.
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     |  |
>     +------------------------------------------------------------+

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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