I'll post the code to make it clearer :
Code:
public cpm_menu(id)
{
if(TotalModels > 0)
{
if(fm_get_user_team(id) == CS_TEAM_CT)
menu_display(id, menu_id_model_ct, 0);
else if(fm_get_user_team(id) == CS_TEAM_T)
menu_display(id, menu_id_model_t, 0); // This is where the error is
}
return 1;
}
Code:
public point_handler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
return 1;
}
new data[6], name[64];
new access, callback;
menu_item_getinfo(menu, item, access, data, 5, name, 63, callback);
new key = str_to_num(data);
switch(key)
{
case 1: show_points(id);
case 2: db_handle(id);
case 3:
{
if(!get_status(id, 1))
vip_handle(id);
else if(get_status(id, 1))
vip_menu(id);
}
case 4: cpm_menu(id); // This is where the second error is
case 5:
{
if(!get_status(id, 3))
mr_handle(id);
else if(get_status(id, 3))
mr_menu(id);
}
case 6:
{
if(!get_status(id, 4))
vmr_handle(id);
if(get_status(id, 4))
vmr_menu(id);
}
case 7: sam_handle(id);
case 8: cm_handle(id);
}
menu_destroy(menu);
return 1;
}
__________________