[CODE] [NEWBIE] ACMD's

From: Chuck Reed (creed@I-55.COM)
Date: 12/21/97


Ok, this is a pretty newbie-ish question, but I have been toying around with
it and it's giving me probs.  I am trying to add a call to
redit_save_to_disk in my do_dig and do_copyto ACMD's.  Now, these are the
steps I have taken.

1) Reference it as an extern void redit_save_to_disk(int zone);
2) Added struct descriptor_data *d; in the begining of do_dig/do_copyto.
3) made a call to redit_save_to_disk(OLC_ZNUM(d)); at the end of dig/copyto.

Now, this compiles fine, but crashes when I try to dig somewhere.  I
currently don't get core files for some strange reason, but I think it
crashes because *d doesn't have the right info in it (as it does in
redit.c).  Just wondering if anyone knew a solution to this problem.

Chuck
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+
| Chuck Reed                  | Ash of Dark Horizon          |
| creed@i-55.com              | mud.gator.net 6000           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+
| "Losers always whine about their best while the winner     |
|  home and fucks the prom queen."                           |
|                           -Sean Connery                    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+


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



This archive was generated by hypermail 2b30 : 12/08/00 PST