Raised This Month: $ Target: $400
 0% 

Invalid menu id


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 07-15-2008 , 06:34   Re: Invalid menu id
Reply With Quote #2

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; }
__________________

Last edited by atomen; 07-15-2008 at 06:36.
atomen is offline
Send a message via MSN to atomen
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode