CODE: Races

From: Peter Hartman (hartman@kuntrynet.com)
Date: 10/19/96


Following the races.doc I run into this problem when compiling

interpreter.c: function nanny
interpreter.c:1530: structure has no member named 'pos'
interpreter.c:1531: structure has no member named 'pos'


   case CON_QCLASS:
    if ((GET_CLASS(d->character) = parse_class(*arg)) ==
CLASS_UNDEFINED) {
      SEND_TO_Q("\r\nThat's not a class.\r\nClass: ", d);
      return;
    }
    SEND_TO_Q(race_menu, d);         
    SEND_TO_Q("\r\nRace: ", d);      
    STATE(d) = CON_QRACE;            
    break;                           

  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;                                                            
    }                                                                    
									 
/* line 1530 right below me */  
  if (d->pos < 0)                                                      
      d->pos = 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;   

I've been pulling my hair out over this one so any help would be greatly
appreciated!  And also as I am slightly busy and cant read all teh
circle mud mailing list maybe if you do know cc: it to
hartman@kuntrynet.com!!! thanks for any ideas no matter how small!!!

wart -- peter hartman <hartman@kuntrynet.com>
+-----------------------------------------------------------+
| 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/18/00 PST