Re: [errors]

From: Angus A. Mezick (dodger@WPI.EDU)
Date: 02/17/97


> listen all i am askign is for help if that is not why this list was made
> why was it then,.,..

> you flame for asking for help!!!!
> OK I thank those who have tried to help me but when others flame me....
> *sigh*
> oh well
> if anyone can still help me cause i can't figure why i keep gettin this
> error

> gcc -c -g -O -Wall -g -fno-strict-prototypes  fight.c
>fight.c> In function `raw_kill':
>fight.c> 366: parse error before `('
>fight.c> 367: called object is not a function
>fight.c> 366: warning: statement with no effect
> make[1]: *** [fight.o] Error 1 

> heres the where line 366 is!

>  if (GET_QUEST_MOB(ch) > 0) && (GET_MOB_VNUM(questmob) ==
> GET_QUEST_MOB(ch))
>     GET_QUEST_MOB(ch) < 0;
  
> if you cant help tell me and dont flame me thanks


1) try this:
if((GET_QUEST_MOB(ch) > 0) && (GET_MOB_VNUM(questmob) == GET_QUEST_MOB(ch)))
  ^                                                                        ^
Those two little parens could make all the difference.  That or give us a
couple of lines before this.
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
|    Or send 'info circle' to majordomo@cspo.queensu.ca     |
+-----------------------------------------------------------+



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