Re: [CODE] pk

From: Julian Buckley (s348266@student.uq.edu.au)
Date: 02/12/99


> I tried putting in the pk switch where you said, as follows is the complete
> line:
> int pk_allowed = GET_LEVEL(ch) > 4;
>
> and when I went to compile I got the error:
>
> config.c:54: warning: implicit declaration of function `GET_LEVEL'
> config.c:54: `ch' undeclared here (not in a function)
> config.c:54: initializer element is not constant

I'd just set something like #define PLR_PK      4

and within the code maybe:
 if GET_LEVEL(ch) > PLR_PK

To lose the "ch undeclared", throw a:
struct char_data *ch;

at the start of the code.

-Caniffe

-----------------------------------------------------------------
 Julian Buckley, 3rd Year Computer Systems Engineering
 Dept. Computer Science and Electrical Engineering, Univ. of Qld
 E-Mail: s348266@student.uq.edu.au
 Web Page: http://student.uq.edu.au/~s348266/index.html
-----------------------------------------------------------------


     +------------------------------------------------------------+
     | 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 : 12/15/00 PST