AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Problem in menu (https://forums.alliedmods.net/showthread.php?t=326956)

Supremache 08-25-2020 07:00

Problem in menu
 
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 : https://i.ibb.co/QjjTPDD/41.png

Shadows Adi 08-25-2020 08:01

Re: Problem in menu
 
You asked this another time and you've marked it as Solved.

https://forums.alliedmods.net/showthread.php?t=325879

Answer: https://forums.alliedmods.net/showpo...89&postcount=2

Supremache 08-25-2020 11:16

Re: Problem in menu
 
Quote:

Originally Posted by Shadows Adi (Post 2715465)

I forgot this, thanks for ur help :)

Shadows Adi 08-25-2020 11:18

Re: Problem in menu
 
No problem. Next time keep it in mind to search first :)

Supremache 08-25-2020 15:09

Re: Problem in menu
 
Quote:

Originally Posted by Shadows Adi (Post 2715483)
No problem. Next time keep it in mind to search first :)

Sure i will :wink:

thEsp 08-25-2020 16:55

Re: Problem in menu
 
Quote:

Originally Posted by Supremache (Post 2715503)
Sure i will :wink:

Won't take too long to defy yourself.

Supremache 08-26-2020 01:31

Re: Problem in menu
 
Quote:

Originally Posted by thEsp (Post 2715515)
Won't take too long to defy yourself.

Sorry but i don't want to take a lesson on this, I said i will search before posting a new topic
Solved.


All times are GMT -4. The time now is 13:47.

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