Re: quick question..

From: ;P (siv@CYBERENET.NET)
Date: 12/12/97


>   if ((isname(tmp, i->player.name)) || \
>    (isname(tmp, pc_race_types[GET_RACE(i)])) || \
>     (isname(tmp, pc_affil_types[GET_AFFIL(i)])) || \
>      (isname(tmp, pc_class_types[GET_CLASS(i)])))
>     if (CAN_SEE(ch, i))
>
> handler.c: In function `get_char_room_vis':
> handler.c:949: warning: array subscript has type `char'
> handler.c:949: warning: array subscript has type `char'
> handler.c:949: warning: array subscript has type `char'
>
> because isname is looking for an int?

nope...i5ts nortlooking for an int...what this means is that you have to
type cast your GET_CLASS, GET_RACE, GET_AFFIL as an integer..just like:

pc_class_type[(int) GET_CLASS(ch)]

siv


     +------------------------------------------------------------+
     | 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/08/00 PST