Sorry if this is already answered, but those GET_??? statements are returning char's, when isname's second parameter needs an int, just put (int) before the GET_??? >Nathan Davies, >does this code: > > 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)) > > >produce this error: > >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? precisely +------------------------------------------------------------+ | 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