Whenever I try to compile I get this error, I don't know why as I haven't edited these files that would change these at all.
interp.c:546: error: expected identifier or ( before if interp.c:586: error: cmd undeclared here (not in a function) interp.c:586: error: expected ) before . token interp.c:588: warning: data definition has no type or storage class interp.c:588: warning: type defaults to int in declaration of tail_chain interp.c:588: error: conflicting types for tail_chain merc.h:2554: error: previous declaration of tail_chain was here interp.c:589: error: expected identifier or ( before return interp.c:590: error: expected identifier or ( before } token make: *** [interp.o] Error 1
Heres interp.c (atleast the segments that supposedly contains errors, I marked the "problem lines")
* Character not in position for command? */ if ( ch->position < cmd_table[cmd].position ) /*546*/ { switch( ch->position ) { case POS_DEAD: send_to_char( "Lie still; you are DEAD.\n\r", ch ); break;
case POS_MORTAL: case POS_INCAP: send_to_char( "You are hurt far too bad for that.\n\r", ch ); break;
case POS_STUNNED: send_to_char( "You are too stunned to do that.\n\r", ch ); break;
case POS_SLEEPING: send_to_char( "In your dreams, or what?\n\r", ch ); break;
case POS_RESTING: send_to_char( "Nah… You feel too relaxed…\n\r", ch); break;
case POS_SITTING: send_to_char( "Better stand up first.\n\r",ch); break;
case POS_FIGHTING: send_to_char( "No way! You are still fighting!\n\r", ch); break;
any ideas on what could have caused this, when researching i've noticed some code bases have removed the tail_chain function, before taking the action to remove the function I decided i'd come here and ask advice first.
Heres interp.c (atleast the segments that supposedly contains errors, I marked the "problem lines")
and merc.h's "bad segment"
any ideas on what could have caused this, when researching i've noticed some code bases have removed the tail_chain function, before taking the action to remove the function I decided i'd come here and ask advice first.