At 07:13 PM 12/6/95 -0800, you wrote: > > Hmm, I'm having trouble with the MOBPRogram... > >I get this error after I used the patch to install it.... > > >make ../bin/circle >gcc -c -g -Wall act.offensive.c >act.offensive.c: In function `do_kill': >act.offensive.c:126: too few arguments to function `raw_kill' >*** Error code 1 >make: Fatal error: Command failed for target `act.offensive.o' > > >Can anyone help me out? Here's the code, if that'll help: > >void raw_kill(struct char_data * ch, struct char_data * killer); >-= in begining =- > >-= lot's of lines later =- > if (!(vict = get_char_room_vis(ch, arg))) > send_to_char("They aren't here.\r\n", ch); > else if (ch == vict) > send_to_char("Your mother would be so sad.. :(\r\n", ch); > else { > act("You destroy $N with one look!\r\n", FALSE, ch, 0, vict, TO_CHAR); > act("$N looks at you! RUN!\r\n", FALSE, vict, 0, ch, TO_CHAR); > act("$n destroys $N!\r\n", FALSE, ch, 0, vict, TO_NOTVICT); > raw_kill(vict); > ^^^^^^^^^^^^^^^ >That's where the error is.. > > >Thanks for any help! > >Myrddin - Corey Hoitsma > >choitsma@netcom.com > Check your function declaration. It requires two parameters. The first for raw_kill is a pointer to a data structure for ch. The second is a pointer to a data structure for the killer. You are only passing half of this. I think you're gonna need this .. raw_kill(vict, ch); Good Luck! -- _____________________________________________________(_) (_)Glenn Campbell Voice:902-564-3660 (136)| | |Computer Systems Specialist Fax:902-562-6113 | | |Canadian Coast Guard College Voice Mail:902-565-6563 | | |Web Page Address: www.cgc.ns.ca/~glenn | | |_____________________________________________________| (_)
This archive was generated by hypermail 2b30 : 12/07/00 PST