Jerry Billings wrote:
>
> Okay I added the lives system which i am very greatful for...but now i'm
> getting the following error. I tried to fix it but i couldnt.
>
> fight.c(502) : error C2064: term does not evaluate to a function
>
> here is the line i was given
> if (GET_LEVEL(ch) < LVL_IMMORT && !--GET_LIVES(ch))
> SET_BIT(PLR_FLAGS(d->character), PLR_DELETED);
>
Please correct me if I am wrong, but I believe the !-- subtracts one
from lives.
Plus I have never seen !-- would it be better to !(--GET_LIVES(ch))?
> I changed it to this but it still didnt work
> if (GET_LEVEL(ch) < LVL_IMMORT && GET_LIVES(ch) < 1)
> SET_BIT(PLR_FLAGS(ch), PLR_DELETED));
>
Did this second one give the same error (exactly)?
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT