Re: Autoloot/Autosplit

From: Chris Gilbert (chris@buzzbee.freeserve.co.uk)
Date: 01/16/00


Jerry Billings wrote:
>
> Hey I just started all over with bpl16 with dg 1.7a and oasis 2, and i wanted
> to add autosplit and autoloot but when i compile here are the errors i get.
> it does compile, but when i try to use the commands they dont work.
>
> Here is the code
>
> line 810      sprintf(local_buf,"%ld", (long)local_gold);
> line 816        do_get(ch,"all corpse",0,0);
> line 821       do_split(ch,local_buf,0,0);
>
> Here are the errors i'm getting:
>
> C:\Windows\Desktop\circle16\src\fight.c(810) : warning C4047: 'function' :
> 'char *' differs in levels of indirection from 'int '
> C:\Windows\Desktop\circle16\src\fight.c(810) : warning C4024: 'sprintf' :
> different types for formal and actual parameter 1

Arg 1 to sprintf is wrong, what's the declaration (type) of local_buf?

> C:\Windows\Desktop\circle16\src\fight.c(816) : warning C4013: 'do_get'
> undefined; assuming extern returning int

You probably need to add an ACMD(do_get); after all the #includes.  that
declares do_get

> C:\Windows\Desktop\circle16\src\fight.c(821) : warning C4013: 'do_split'
> undefined; assuming extern returning int

as for do_get

Chris


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