Re: Adding in firearms

From: Abraham Dizon (
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);

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:

   | FAQ: |
   | Archives: |
   | Newbie List:   |

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