Re: Recall Command

From: Justin (justinl@mac.com)
Date: 01/10/02


[snip]
> else if (GET_LEVEL(ch) >== 91) {
[snip]
> else if (GET_LEVEL(ch) == 99) {


As mentioned, it's >= (greater than). You fixed == (equal to).


Also, you're checking to see if they're lvl 99 after you're checking
to see if they're over 91. 99 is always greater than 91, therefore
you'll never get to that code. Either switch the positions of the two
checks (preferred), or make sure that the first isn't 99 with a second
check...    && GET_LEVEL(ch) < 99

Go buy a C book and nail down the basics - These operators are one of
the first things one learns.

Justin

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT