printf("%s", race_table[ch->pcdata->race]);
db.c: In function do_dump:
db.c:3362: error: PC_DATA has no member named race
fprintf(fp,"\nMobile Analysis\n");
fprintf(fp, "—————\n");
fprintf(fp, "VNUM-COUNT-KILLED-RACE-SHORT DESC\n");
nMatch = 0;
for (vnum = 0; nMatch < top_mob_index; vnum++)
if ((pMobIndex = get_mob_index(vnum)) != NULL)
{
nMatch++;
fprintf(fp,"#%-4d-%3d active-%3d killed-race-%s\n",
pMobIndex->vnum,pMobIndex->count,
pMobIndex->killed,pMobIndex->short_descr);
}
fclose(fp);
I just can't figure out what the code for doing the race name should be. I've tried looking at other pieces of code, but it never seems to work? What should it be and why?
Thanks,
Arholly