You can't have a conditional operator on the left side of an equal sign. ? : is a conditional operator such that: x ? y : z means if x is true, then do y else do z. Rick -----Original Message----- From: Yohay Etsion <yohay_e@NETVISION.NET.IL> To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca> Date: Tuesday, December 01, 1998 4:30 AM Subject: [CODE][WIN95][MSVC5] A compiling error concerning L-values ... >error C2106: "-=" : left operand must be l-value > >in this line : GET_MANA(ch) -= 200; > >#define GET_MANA(ch) (!IS_NPC(ch) ? > ((ch)->player_specials->linking[0] ? \ > (ch)->player_specials->manalinked : \ > (ch)->points.mana): (ch)->points.mana) > +------------------------------------------------------------+ | 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