Re: [Circle] [Newbie

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


> >
> >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[].
> 
> ok, I put that in and got a warning on that line : array subscript has type
> 'char'
> 
> what'd I do wrong?

I think in yor first post you said you changed the type in all the right
places... if so, change it back to int :)

-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