Re: [CODE] Stumped on such a simple problem,I think I sould hand in my degree.

From: Shay (shay@unique-software.com)
Date: 07/24/00


Thats just retarded.  It was declared as
int class_ok_race[][];"
and not
extern class_ok_race[][];"

so as soon as i went from int to extern, it worked..   geez, half the code
souldnt
work in that case if you ask me.. but who am i to judge.. ;)

Anywayz, thanks for the fix.. now Ill see what else I can destroy...


At 02:48 AM 7/24/2000 Monday, you wrote:
>Shay wrote:
> >
> > Ok, heres the problem, using raceclass, i have the following code
> implemented:
> >
> > In Interpreter.c I have:
> >
><snip>
>
> > And In class.c I Have:
> >
> > #define Y   TRUE
> > #define N   FALSE
> > int class_ok_race[NUM_RACES][NUM_CLASSES] = {
> >    /*            M, C, T, W */
> >    /* Human */ { Y, Y, Y, Y },
> >    /* Elf   */ { Y, Y, Y, N },
> >    /* Gnome */ { Y, Y, N, Y },
> >    /* Dwarf */ { N, Y, N, Y },
> >    /* Vamp  */ { Y, N, N, Y }
> > };
>
>How is class_ok_race defined in interpreter.c?  you need to have an
>"extern class_ok_race[][];" either in interpreter.c or in one of the
>header files #included in interpreter.c.
>
>Regards, Peter
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT