Raised This Month: $ Target: $400
 0% 

menu_display() issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
paiNflCltch
Junior Member
Join Date: Sep 2012
Old 09-29-2012 , 06:20   menu_display() issue
Reply With Quote #1

Hi. I need use menu_display() to show the last page what an user have saw, cause when he did his choice the menu will open in the same page.

I used this but it don't work.
Code:
/* Menu Page */ new mPage[33]; public cmdMenu(id) {     new menu = menu_create("Menu :", "MenuHandler");         /* Items goes here */     menu_display(id, menu, mPage[id]);     return PLUGIN_HANDLED; } public MenuHandler(id, menu, item) {     if(item == MENU_EXIT)     {         mPage[id] = 0;                 menu_destroy(menu);         return PLUGIN_HANDLED;     }         if(item == MENU_MORE)         mPage[id]++;         if(item == MENU_BACK && mPage[id] > 0)         mPage[id]--;         new iData[6], iName[64], Access, Callback;     menu_item_getinfo(menu, item, Access, iData, charsmax(iData), iName, charsmax(iName), Callback);         new Target = str_to_num(iData);         /* Choices goes here */     menu_display(id, menu, mPage[id]);     return PLUGIN_HANDLED; }

Thanks.

Last edited by paiNflCltch; 09-29-2012 at 06:20.
paiNflCltch is offline
 



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 08:19.


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