Raised This Month: $ Target: $400
 0% 

Menu Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 07-11-2010 , 13:49   Menu Problem
Reply With Quote #1

For some reason all numbers returns fine for LineData, but on the second page, which would be labeled "Number 10" and every line above that are blank. The var LineText is also blank for 10+. Wth?
So my menus looks like

Quote:
NS Achievements 1/7

1. Number 1
2. Number 2
3. Number 3
4. Number 4
5. Number 5
6. Number 6
7. Number 7

#.Back
9.More
0.Exit
Quote:
NS Achievements 2/7

1. Number 8
2. Number 9
3.
4.
5.
6.
7.

8.Back
9.More
0.Exit
Quote:
NS Achievements 3/7

1.
2.
3.
4.
5.
6.
7.

8.Back
9.More
0.Exit
Code:
public help_menu(id,page) {     new title[24];     formatex(title,sizeof(title),"NS Achievements - v%s -",VERSION);             new menu = menu_create(title, "menu_a_main_handler");         for(new i=1; i<=45;i++)     {         new line_text[16];         formatex(line_text,sizeof(line_text),"Number %i",i);                 new line_data[2];         formatex(line_data,sizeof(line_data),"%i",i);                 menu_additem(menu, line_text, line_data);     }     menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);     menu_display(id, menu, page); } public menu_a_main_handler(id, menu, item) {     if(item == MENU_EXIT)     {         menu_destroy(menu);         return PLUGIN_HANDLED;     }     new LineText[32],LineData[32], access, callback;     menu_item_getinfo(menu, item, access, LineData, sizeof(LineData), LineText, sizeof(LineText), callback);             client_print(id,print_chat,"Menu: title(%s) data(%s) callback(%d) access(%d)",LineText,LineData,callback,access);     menu_destroy(menu);         return PLUGIN_HANDLED; }
__________________


Last edited by mysticssjgoku4; 07-11-2010 at 14:15.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



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


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