Re: [CODE]

From: Abraham Dizon (soldier2003@hotmail.com)
Date: 06/29/01


I recently got a new score sheet and it seems fine but I got this
unitialized crap. Only a small portion needs to be fixed. Okay when I
implemented this into my MUD I got a problem. It says that K is unitialized.
Its on the struct char_data * k; I dunno what to do to fix it.

Here's the snippet:
--------------------
In the external variables declarations, add
extern const char *pc_class_types[];
extern const char *pc_race_types[];
extern int level_exp(int chclass, int level);
extern char *class_abbrevs[];
extern char *race_abbrevs[];

/* remove the current do_score and replace it with this one */
ACMD(do_score)
{
   struct time_info_data playing_time;
   struct time_info_data *real_time_passed(time_t t2, time_t t1);
   struct char_data * k; /* Problem */
   bool aff;

----------------------------- End of Snippet --------------------

This is only half of the score sheet that needs fixing. Any input is
welcome.

-Hero
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST