Re: [code] [newbie] Race crash

From: AxL (
Date: 12/19/96

> ACK! There is suppost to be a void there to?
> You just told me the switch... Ok.. what do I do in the void?
> :)
> P/S
> Sorry for the lag everyone...
> Pheonix the Newbie Imp

	This is for listing race in a who or whois-type command?   Hmm...
well, I added the following to class.c (or races.c, depending on where
your race stuff is)

const char *race_abbrevs[] = {

const char *pc_race_types[] = {

	Near the top of act.informative.c (I'll assume this is where you
are placing the whois command)

extern char *pc_race_types[];
extern char *race_abbrevs[];

	Now, wherever you wish to print the race info, use the following
to reference:

pc_race_types[GET_RACE(ch)] 		(to get Halfing, Human, etc...)

race_abbrevs[GET_RACE(ch)] 		(to get Hal, Gia, etc...)

	Note:  when compiling with -Wall, i do get a
warning  "array subscript has type `char'"  

message, but my C knowledge is not extensive enough to tell if this is
a Bad Thing(tm) or no.

	So, this may be what you're looking for, or it may be totally
useless.  Hopefully it is of a little use to someone out there. :)
               "Beneath the stain of time, the feeling disappears.
-axl @)-->---   You are someone else.  I am still right here." - NIN 

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

This archive was generated by hypermail 2b30 : 12/18/00 PST