Code:
public menu_handler3(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
case 2:{
menu_destroy(menu);
menu1(id);
return PLUGIN_HANDLED;
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
function menu_handler3 should return a value
symbol already defined menu_destroy
and it also says that "return PLUGIN_HANDLED" is an invalid function or declaration