Re: Adding in firearms

From: Abraham Dizon (soldier2003@hotmail.com)
Date: 03/05/02


Thanks Welcor. Stupid me. That small && made a difference for ||. Well
here's the next part people. Now that we got a Firearm and Ammunition
Items(Fireweapon and Missile) comes the part were we combine them. As in
havingthe firearm load the clip of ammunition into it. Okay I wrote my
ACMD(do_reloads) in act.other.c and got these errors after recompiling:

act.other.c: In function `do_reloads':
act.other.c:550: warning: passing arg 3 of `get_obj_in_list_vis'
from incompatible pointer type
act.other.c:550: too few arguments to function `get_obj_in_list_vis'

And the lines with the errors:
()= Not in the code

(Line 550) missile = get_obj_in_list_vis(ch, arg2, ch->carrying);

missile = get_obj_in_list_vis(ch, arg2, ch->carrying);
if (!missile) {
     send_to_char("What are you trying to use as ammunition?", ch);
     return;

Well hope somebody can help me with this, cause I'm stomped. Any help is
greatly appreciated. Hopefully when I finish this Firearms Code I'll
contribute it to the ftp site for future reference and usage to all the
coders like me trying to do stuff like this. Bye!

- Hero
Still working on the Firearms Code :P


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT