class.c: In function `invalid_class': class.c:701: warning: suggest parentheses around && within || class.c:701: parse error before `return' class.c:714: warning: suggest parentheses around && within || class.c:716: warning: suggest parentheses around && within || class.c:717: warning: suggest parentheses around && within || class.c:789: warning: control reaches end of non-void function make[1]: *** [class.o] Error 1 My invalid class: int invalid_class(struct char_data *ch, struct obj_data *obj) { if ((IS_OBJ_STAT(obj, ITEM_ANTI_MAGIC_USER) && IS_MAGIC_USER(ch)) || (IS_OBJ_STAT(obj, ITEM_ANTI_CLERIC) && IS_CLERIC(ch)) || (IS_OBJ_STAT(obj, ITEM_ANTI_WARRIOR) && IS_WARRIOR(ch)) || (IS_OBJ_STAT(obj, ITEM_ANTI_THIEF) && IS_THIEF(ch)) || (IS_OBJ_STAT(obj, ITEM_ANTI_PILOT) && IS_PILOT(ch))) return 1; else return 0; } return 1; = Line 701 Can someone help to solve this problem? _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com +------------------------------------------------------------+ | 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