On Sat, 13 Jul 1996, John C. A. Bambenek, Esq. wrote: > I was working with the autollot code on the snippets page, and put it > in. I am getting this compiling error. > > fight.c: In function `damage': > fight.c:756: parse error before `void' > fight.c:757: warning: implicit declaration of function `do_get' > make: *** [fight.o] Error 1 > make: Leaving directory `/home/jc/circle30bpl11/src' > make: *** [all] Error 2 > > Here is my code at this point. > > die(victim); > if (IS_NPC(victim) && !IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOLOOT)) > ACMD(do_get); > do_get(ch, "all corpse", 0, 0); The code is wrong. Move the ACMD(do_get); to the variable declaration section of damage(), and it should work fine. From email@example.com Sat, 13 Jul 96 15:47:39 EDT X-SystemInfo: MyE-Mail: EMail X-Message-No: 2376 (database) From: the count <firstname.lastname@example.org> To: circle <email@example.com> Subject: imms and no-magic rooms Date: Sat, 13 Jul 96 15:47:00 Message-ID: <CMM.firstname.lastname@example.org> X-POP3-Rcpt: lk4150@per Return-Path: email@example.com Received: from flipper.pvv.ntnu.no (firstname.lastname@example.org [18.104.22.168]) by per.cybercity.dk (8.6.12/8.6.12) with ESMTP id WAA25573 for <email@example.com>; Sat, 13 Jul 1996 22:07:40 +0200 Received: (from majordomo@localhost) by flipper.pvv.ntnu.no (8.7.5/8.6.12) id VAA16343 for circle-outgoing; Sat, 13 Jul 1996 21:43:29 +0200 Received: from otis.cla.sc.edu (otis.cla.sc.edu [22.214.171.124]) by flipper.pvv.ntnu.no (8.7.5/8.6.12) with SMTP id VAA16332 for <firstname.lastname@example.org>; Sat, 13 Jul 1996 21:43:13 +0200 Received: from kirk.geog.sc.edu by otis.cla.sc.edu (4.1/SMI-4.1)id AA12383; Sat, 13 Jul 96 15:43:10 EDT Received: from janeway.geog.sc.edu by kirk.geog.sc.edu (4.1/SMI-4.1)id AA12570; Sat, 13 Jul 96 14:39:55 EDT Sender: email@example.com Precedence: bulk anybody else out there get annoyed that not even imms (or at least imps ;) can cast spells in no-magic rooms? i changed it in my mud, but am curious if anybody else has. oh, and i get the conflicting def for qsort in the code for saving poofins that was posted a while back (which was actually called as extras.c).
This archive was generated by hypermail 2b30 : 12/07/00 PST