Jump to content
  • 0

Extended Vending System Question


Question

Posted

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

5 answers to this question

Recommended Posts

Posted

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,		},

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