Jump to content
  • 0

Error in pc.c after compile


Question

Posted

Hello,

I just patched my server with Xantara's http://rathena.org/board/files/file/2242-package-itemmap-getitem-map/

but i got some compile error.. here it is:-


pc.c
1>d:\server files\rathena\src\map\pc.c(5150): error C2198: 'map_addflooritem' : too few arguments for call

Line 5150

/*------------------------------------------
* pc_getitem_map [Xantara]
*------------------------------------------*/
int pc_getitem_map(struct map_session_data *sd,struct item it,int amt,int count,e_log_pick_type log_type)
{
int i, flag;
nullpo_ret(sd);
for ( i = 0; i < amt; i += count )
{
 if ( !pet_create_egg(sd,it.nameid) )
 { // if not pet egg
  if ( flag = pc_additem(sd,&it,count,log_type) )
  {
   clif_additem(sd, 0, 0, flag);
   if( pc_candrop(sd,&it) )
 map_addflooritem(&it,count,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);
  }
 }
}
log_pick_pc(sd, log_type, -amt, &sd->status.inventory[i]);
return 1;
}

Anyone can help me fix this?

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...