[NEWBIE] do_who

From: John Hines (sculpy@MUD3.GATOR.NET)
Date: 05/13/98


        First of, PLEASE don't tell me I'm a dummy because I allready know
it. I am having a small problem with 'do_who'. When my mud is running and
the who command is typed, there are no players displayed.

This is the error i get:

act.informative.c:919: warning: unused variable `godlevs'

  const char *godlevs[LVL_IMPL - (LVL_IMMORT-1)] = {   /* <---line 919 */
    "    &CDesigner&n   ",
    "   &CBuilder&n  ",
    "  &CSr. Builder&n  ",
    "  &CHigh God&n  ",
    "  &CGreater God&n  ",
    "  &CJr. Coder&n  ",
    "  &CSupreme Being&n  "
  };


And if I am not mistaken this may be where my problem lies:

  if (gods == 0)
    sprintf(godbuf, "%s&f<none>&n\r\n", godbuf);
    sprintf(godbuf, "%s\r\n&GThere %s &n%d&G visible immortal%s.&n\r\n",
godbuf,
           (gods == 1 ? "is" : "are"), gods, (gods == 1 ? "" : "s"));
       page_string(ch->desc, godbuf, 0);
       send_to_char("\r\n", ch);


Any help would be appreciated. Flaming me is understood.


Thank you in advance,

Odin
~~~~

Administration: TorbinMUD


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