Raised This Month: $ Target: $400
 0% 

Top in menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Point
Junior Member
Join Date: Oct 2014
Old 05-24-2019 , 14:56   Re: Top in menu
Reply With Quote #3

Quote:
Can be written like this to avoid the same things being repeated:
PHP Code:
formatex(szDatacharsmax(szData), "#%i - %s"iPositionszName);  
menu_additem(g_TopszDataszPosition);  
if(
iPosition == && id == 0) return; 
Thanks but i'm using the first position to display something different. These are just examples

Quote:
You should also create the new menu ( g_InfoTop = menu_create(title, "TopInfoMenu_Handler"); ) on another place, maybe where the topMenu is being created.
I need to read the results from tables so.. where else could i place it?
EDIT: Sorry, misunderstood. i'll test that
EDIT2: Nope.. it doesn't work

Quote:
Do you want to create the other menu that it shows nick/steamid when you click on the player in the first menu?
Exactly
PHP Code:
public TopMenu_Handler(idmenuiditem

    if(!
is_user_connected(id) || item == MENU_EXIT
        return 
PLUGIN_HANDLED
         
    
menu_display(idg_TopInfo); 
     
    return 
PLUGIN_HANDLED

^ This way it just displays the last person's info that entered the top. I don't know how to display it for each case, each player. Thank you for your reply

Last edited by Point; 05-24-2019 at 18:04. Reason: typo
Point 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 07:59.


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