Re: [CODE][SEMI-NEWBIE]

From: Juliano Ravasi Ferraz (jferraz@linkway.com.br)
Date: 03/27/00


 ACMD(do_whois)
 {
   struct char_data *victim = 0;
   struct char_file_u tmp_store;

   skip_spaces(&argument);

   if (!*argument) {
       send_to_char("Who do you want to know about?\r\n", ch);
     } else {
       CREATE(victim, struct char_data, 1);
       clear_char(victim);
       if (load_char(argument, &tmp_store) > -1) {
         store_to_char(&tmp_store, victim);
           sprintf(buf, "%s %s is a level %d %s %s %s,\r\n",
 /*        sprintf(buf, "Level: %d\r\nClass: %s\r\nRace : %s\r\nBrand:
 %s\r\n", GET_LEVEL(victim), */
                 GET_NAME(victim),
                 (victim->player.title),
                 GET_LEVEL(victim),
-                GET_SEX(victim),
+                genders[(int) GET_SEX(victim)],
                 pc_race_types[(int) GET_RACE(victim)],
                 pc_class_types[(int) GET_CLASS(victim)]);
 /*              pc_deity_types[(int) GET_DEITY(victim)]); */
         send_to_char(buf, ch);
       } else {
         send_to_char("There is no such player.\r\n", ch);
       }
       free(victim);
     }

 }


     +------------------------------------------------------------+
     | 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