Raised This Month: $ Target: $400
 0% 

Solved Problem in menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-25-2020 , 07:00   Problem in menu
Reply With Quote #1

i have this problem in this menu not showing all words.
it have szItem[2048] but i still have the same thing

PHP Code:
public cmdXPList(idiLeveliCid)
{
    if(!
cmd_access(idiLeveliCid1))
    {
        return 
PLUGIN_HANDLED
    
}
    if(
is_user_bot(id))
    {
        return 
PLUGIN_HANDLED
    
}

    new 
szTitle[2048]
    
formatex(szTitlecharsmax(szTitle), "\yRank System: \rXP List")

    new 
iPlayers[MAX_PLAYERS], iPnumiMenu menu_create(szTitle"XPList_Handler")
    
get_players(iPlayersiPnum); SortCustom1D(iPlayersiPnum"sort_players_by_xp")

    for(new 
szItem[2048], szName[MAX_NAME_LENGTH], iPlayeriiPnumi++)
    {
        
iPlayer iPlayers[i]
        
get_user_name(iPlayerszNamecharsmax(szName))
        
formatex(szItemcharsmax(szItem), "\d[%i XP] \w%s \r[\yLevel %i: %s\r]",
        
g_iPlayerXPiPlayer ],
        
szName,
        
g_iPlayerLeveliPlayer ],
        
g_mPlayerDatag_iPlayerLeveliPlayer ] ][ m_szRankName ]);
        
menu_additem(iMenuszItem)
    }

    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED

Pic :

Last edited by Supremache; 08-26-2020 at 01:31.
Supremache is offline
 


Thread Tools
Display Modes

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 13:47.


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