[Circle] [Newbie

From: Derek L. Karnes (dkarnes@mystech.com)
Date: 11/22/96


marimah@ksu.ksu.edu wrote:
> 
> Anyway, it worked great, except for one thing. I want to add something like
> this in the do_score function:
> 
> sprintf(buf,"Race: %s", GET_RACE(ch));
> 


extern char *races[]; /*constants.c */
sprintf ( buf, "Race: [%d] %s \r\n",GET_RACE(ch), races[GET_RACE(ch)]);



GET_RACE() returns the lookup number for the string names stored in
races[].

-Derek

--

--    dkarnes@mystech.com
--    Serapis, Imp of Dark Pawns
--    knight.ufp.org 4000
--    Open for Beta testing
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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