Jump to content
  • 0

Error in pc.c after compile


Feistz

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

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?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

map_addflooritem(&it,count,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0,0);

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

Thank you! Worked like a charm :)

Link to comment
Share on other sites

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.

×
×
  • Create New...