Hello: OK, so I got tired of having to retype the same lines of code every time I wanted to show someone's appearance, so I coded a bit and came up with this:
char *appearance_string(CHAR_DATA *ch) { int app; char *tmp; CHAR_DATA *wch;
app = get_curr_stat(wch, STAT_APP); if (app == 0) tmp = "Hideous"; else if (app == 1) tmp = "Ugly"; else if (app == 2) tmp = "Plain"; else if (app == 3) tmp = "Average"; else if (app == 4) tmp = "Attractive"; else tmp = "Radiant";
OK, so I got tired of having to retype the same lines of code every time I wanted to show someone's appearance, so I coded a bit and came up with this:
It is then called in my who function like this:
But then whenever I use the who command, it crashes. Any thoughts? Thanks in advance.
Arholly