try instead of making MAX_ITEM_TYPE a define. make it a global var and give it a value in plugin_init upon compilation.
As such....
PHP Code:
new MAX_ITEM_TYPE
new const item_name[][] =
{
"a",
"b",
"c"
}
public plugin_init()
MAX_ITEM_TYPE = sizeof(item_name)
Also make sure that the last item in an array DOES NOT have a comma after it. And everything that is supposed to be a string is inside quotes. I corrected the first array as an example. You do the rest.
__________________