[newbie] sac

From: SoulReaper Is here (death_comes_to_all@hotmail.com)
Date: 06/14/02


I installed the sac command.. but i get 'unresolved external _snprintf'
from act.comm.c
and 'unresolved exteral _vsnprintf' from comm.c

the code in act.informative lokks like this,

ACMD(do_sac)
{
   struct obj_data *obj;
   char arg[MAX_INPUT_LENGTH];

   one_argument(argument, arg);

   // note, I like to take care of no arg and wrong args up front, not
   // at the end of a function, lets get the wrongness out of the way :)
   if (!*arg)
   {
     send_to_char(ch, "Sac what?\n\r");
     return;
   }

   // if it's not in the room, we ain't gonna sac it
   if (!(obj = get_obj_in_list_vis(ch, arg, NULL,
world[IN_ROOM(ch)].contents)))
   {
     send_to_char(ch, "That obj aint here!\n\r");
     return;
   }

   // nifty, got the object in the room, now check its flags
   // if (!CAN_WEAR(obj, ITEM_WEAR_TAKE)) // (old version)
   if (!IS_CORPSE(obj))
   {
     send_to_char(ch, "You can't sacrifice that!\n\r");
     return;
   }

   // seems as if everything checks out eh? ok now do it
   act("$n sacrifices $p.", FALSE, ch, obj, 0, TO_ROOM);
   act("You sacrifice $p to your god.\r\n",FALSE, ch, obj, 0, TO_CHAR);
   GET_SAC(ch) = GET_SAC(ch) + 1;
   extract_obj(obj);
}

what do i do?


_________________________________________________________________
Hämta MSN Explorer kostnadsfritt på http://explorer.msn.se/intl.asp

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