Re: [NEWBIE][CODE] invalid_race/invalid_class

From: Garringer, Mark (MGarringer@APACMail.com)
Date: 03/06/01


> ------------snip snip--------------
>
> int invalid_race(struct char_data *ch, struct obj_data *obj)
> {
>   if  [(IS_OBJ_STAT(obj, ITEM_ANTI_HUMAN)    && IS_HUMAN(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_ELF)      && IS_ELF(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_HALF_ELF) && IS_HALF_ELF(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_DWARF)    && IS_DWARF(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_HALFLING) && IS_HALFLING(ch)) ||
>       (IS_OBJ_STAT(obj, ITEM_ANTI_GNOME)    && IS_GNOME(ch))]
>       return 1;
>   else
>       return 0;
> }
>
> ------------snip snip--------------
>
> Maybe I am missing something. Anybody have any suggestions for me?

It looks like you missed a group of (). Kudos to you for trying to find it
yourself first :)
Where I inserted [] above is where you should add the missing (). Hope that
helps.

Mark Garringer

--
   +---------------------------------------------------------------+
   | 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