The menu works the first time, but if I try to use it again the menu locks and the error occurs even if I choose menu option 0 (exit).
Code:
public cpm_models(id, menu, item)
{
if(item == MENU_EXIT || !is_user_connected(id))
{
menu_destroy(menu); // Here
return 1;
}
new model_name[41];
new access, callback;
menu_item_getinfo(menu, item, access, model_name, 40, "", 0, callback);
log_ps("Model Name : %s", model_name);
cpm_handle(id, model_name);
menu_destroy(menu); // Here
return 1;
}
__________________