Thread: Compile error
View Single Post
Old 07-21-2002, 08:49 AM   #33
thelenian
Member
 
Join Date: Apr 2002
Posts: 122
thelenian is on a distinguished road
heh.. found the problem with the snippet I gave you..

This should work:

[code] if ((race == 0)
|| (send_to_char("Checking if(!race_table[race].pc_race...\n",ch),!race_table [race].pc_race)
|| (IS_GOOD(ch) && (send_to_char("Hey, you're good! ;D\n",ch),!race_table[race].good))
|| (IS_NEUTRAL(ch) && (send_to_char("Hey, you're neutral! ;|\n",ch),!race_table[race].neutral))
|| (IS_EVIL(ch) && (send_to_char("Hey, you're evil! Muahahaha! >;)\n",ch),!race_table[race].evil)))[/quote]

I was missing 3 sets of parenthesis.
thelenian is offline   Reply With Quote