Re: [NEWBIE][CODE] invalid_race/invalid_class

From: Jorge Enrique Millan O (jo-milla@faoa.uniandes.edu.co)
Date: 03/10/01


>
> int invalid_class(struct char_data *ch, struct obj_data *obj) {
>   if ((IS_OBJ_STAT(obj, ITEM_ANTI_CLERIC) && IS_CLERIC(ch)) ||
>         (IS_OBJ_STAT(obj, ITEM_ANTI_THIEF) && IS_THIEF(ch)) ||

Check where is your "{"

>
> make ../bin/circle
> gcc -g -O2 -Wall  -c class.c
> class.c: In function `invalid_class':
> class.c:2547: parse error before `{'
> class.c:2547: parse error before `)'
> class.c:2551: warning: control reaches end of non-void function
> *** Error code 1

Probably your error is not in function 'invalid_class' but in the previous
function, maybe unclosed branches or semi colon.

I hope that helps.

Jorge.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST