- Posts: 65
- Thank you received: 8
Please Log in or Create an account to join the conversation.
bakarus wrote: I was trying to use an old snippet from the circle mud list, Recharge snippet
I fixed all of the send_to_char issues being reversed, but when I get to this section it gives me an error,Code:if (!(obj = get_obj_in_list_vis(ch, buf, ch->carrying))) { send_to_char("You don't have that!\r\n", ch); return (TRUE); }
It errors on the first line there, and gives this:
spec.procs.c:310 warning: passing argument 3 of 'get_obj_in_list_vis' from incompatible pointer type
spec_procs.c310: error: too few arguments to function 'get_obj_in_list_vis'
spec_procs.c line 310 is the first line in the above code.
Thanks for any help
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
bakarus wrote: actually it worked great, until i tried it a few more times, then the mud crashed. I looked through everything and did a new 'make' and got the following warning:
spec_procs.c: In function 'recharge':
spec_procs.c:310: warning: 'obj' is used uninitialized in this function
Line 310 is the line i added the NULL, to earlier, same one from original post.
Now whenever i try to type 'recharge <wand or staff>' the mud crashes.
Syslog shows: Jul 25 13:32:55 :: SYSERR: Received SIGHUP, SIGINT, or SIGTERM. Shutting down...
not sure what's blowing up here.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
tbaMUD © 2024