CON_QRACE

From: Drew Johnston (Drew29028@aol.com)
Date: 05/25/99


Hey, im using the race addking code from the circlemud ftp contrib page. When
i compile with gnu-win32 it gives me 1 error in interpreter.c. It says

interpreter.c :1554: warning: implicit declaration of function 'GETFILEPOS'
interpreter.c :1555: parse error before ';'

here is my CON_QRACE part

 case CON_QRACE:
    if ((GET_RACE(d->character) = parse_race(*arg)) == CLASS_UNDEFINED) {
      SEND_TO_Q("\r\nThat's not a race.\r\nRace: ", d);
      return;
         }

/*the error is below*/

/*1554*/         if (GETPFILEPOS(d->character) < 0)
/*1555*/      GETPFILEPOS(d->character) = create_entry(GET_NAME(d->character);
         init_char(d->character);
         save_char(d->character, NOWHERE);
    SEND_TO_Q(motd, d);
    SEND_TO_Q("\r\n\n*** PRESS RETURN: ", d);
    STATE(d) = CON_RMOTD;

    sprintf(buf, "%s [%s] new player.", GET_NAME(d->character), d->host);
    mudlog(buf, NRM, LVL_IMMORT, TRUE);
         break;


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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