Jump to content
  • 0

Extended Vending System Question


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I got this error

1>..\src\map\battle.c(7758): error C2065: 'MAX_ITEMDB' : undeclared identifier
1>..\src\map\battle.c(7758): error C2099: initializer is not a constant
1>..\src\map\battle.c(7759): error C2065: 'MAX_ITEMDB' : undeclared identifier
1>..\src\map\battle.c(7759): error C2099: initializer is not a constant

and my battle.c looks like this

	/**
	 * Extended Vending system [Lilith]
	**/
	{ "extended_vending",					&battle_config.extended_vending,				1,		0,		1,				},
	{ "show_item_vending",					&battle_config.show_item_vending,				1,		0,		1,				},
	{ "ex_vending_info",					&battle_config.ex_vending_info,					1,		0,		1,				},
	{ "item_zeny",							&battle_config.item_zeny,						0,		0,		MAX_ITEMDB,		},
	{ "item_cash",							&battle_config.item_cash,						0,		0,		MAX_ITEMDB,		},

and on my skill.c

1>..\src\map\skill.c(17070): error C2065: 'MAX_ITEMDB' : undeclared identifier

i got this line

if( nameid > MAX_ITEMDB )

anyone know how to fix this?


@bump


bump

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

no reference to max_itemdb. Usually it should be in .h files itemdb.h? Maybe check there. See if the proper includes are there

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

rename MAX_ITEMDB to MAX_ITEMID  and recompile

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

no reference to max_itemdb. Usually it should be in .h files itemdb.h? Maybe check there. See if the proper includes are there

maybe this one right?

/**
* Extended Vending system [Lilith]
**/
#define ITEMID_ZENY battle_config.item_zeny
#define ITEMID_CASH battle_config.item_cash

rename MAX_ITEMDB to MAX_ITEMID  and recompile

like this?

	{ "item_zeny",							&battle_config.item_zeny,						0,		0,		ITEMID_ZENY,		},
	{ "item_cash",							&battle_config.item_cash,						0,		0,		ITEMID_CASH,		},
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

look at skill.c line 17070

if( nameid > MAX_ITEMDB )  changed to if( nameid > MAX_ITEMID )

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

when i use the vending and cancel it. map server crash.

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