Re: #2 - W/out the spell errors - sorry

From: Peter Ajamian (peter@pajamian.dhs.org)
Date: 12/11/00


Surgeon wrote:

> what I have set up in an ACMD(do_scavage)
> if(zone_table[world[IN_ROOM(d->character)].zone].scav_counter > 0 &&
> zone_table[world[IN_ROOM(d->character)].zone].scav_counter <=
> zone_table[world[IN_ROOM(d->character)].zone].scav_count)
>  (zone_table[world[IN_ROOM(d->character)].zone].scav_counter)--;
>
> I can get everything to compile, a little problems with 'd'
> I believe it was just a struct descriptor_data *d or something like that
> at the top of the ACMD, *however* it crashes, and I also get problems
> with d is unitialized, I realized I have not assigned d a value in the
> ACMD, but exactly how do I fix both problems?
> it crashes now on the scavage command,

use ch instead of d->character.

Regards, Peter

--
   +---------------------------------------------------------------+
   | 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 : 04/11/01 PDT