Davidson, Christopher M wrote: > > Here's what the code looks like, that I'm getting an error on. > > 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_GNOME) && IS_GNOME(ch)) || > (IS_OBJ_STAT(obj, ITEM_ANTI_FAIRY) && IS_FAIRY(ch))) > return 1; > else > return 0; > } > > The error I keep getting is this. > > class.c: In function 'invalid_race': > class.c:1110: called object is not a function > class.c:1111: called object is not a function > class.c:1112: called object is not a function > Perhaps you don't have IS_HUMAN, IS_ELF, IS_GNOME, or IS_FAIRY defined elsewhere in your code, so the compiler thinks they are names of functions which don't exist. +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST