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 , 10:29   Re: Invalid menu id
Reply With Quote #4

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

Last edited by atomen; 07-15-2008 at 10:39.
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