Jump to content
  • 0
Sign in to follow this  
rans

current_equip_item_index' undeclared (first use in this function)

Question

Hi, 

I am trying to add this patch.


 Index: map/pc.c===================================================================--- map/pc.c	(revision 17101)+++ map/pc.c	(working copy)@@ -2612,6 +2612,8 @@ #endif	 default:		 ShowWarning("pc_bonus: unknown type %d %d !n",type,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 }	 return 0;@@ -3181,6 +3183,8 @@		 break;	 default:		 ShowWarning("pc_bonus2: unknown type %d %d %d!n",type,type2,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 }	 return 0;@@ -3308,6 +3312,8 @@	  default:		 ShowWarning("pc_bonus3: unknown type %d %d %d %d!n",type,type2,type3,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 } @@ -3350,6 +3356,8 @@	  default:		 ShowWarning("pc_bonus4: unknown type %d %d %d %d %d!n",type,type2,type3,type4,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 } @@ -3378,6 +3386,8 @@	  default:		 ShowWarning("pc_bonus5: unknown type %d %d %d %d %d %d!n",type,type2,type3,type4,type5,val);+		ShowWarning("Item ID: %d | Slot Data: %d %d %d %d !n",sd->status.inventory[current_equip_item_index].nameid,sd->status.inventory[current_equip_item_index].card[0],sd->status.inventory[current_equip_item_index].card[1],+			sd->status.inventory[current_equip_item_index].card[2],sd->status.inventory[current_equip_item_index].card[3]); //[clydelion]		 break;	 }


but i got an error
pc.c:2738: error: 'current_equip_item_index' undeclared (first use in this function)

perhaps there is an alternative command for current_equip_item_index ?

thank you

Share this post


Link to post
Share on other sites

1 answer 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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.