View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 02-25-2022 , 11:52   Re: how to add item for the category number 8 of the menu
Reply With Quote #3

Quote:
Originally Posted by zXCaptainXz View Post
Use the old menu system and save yourself a lot of headaches.
Read again, also the old menu system is the same of the new but the difference thing is the new has created with stock that let the menu be easier to use, Also I remember i saw it on a plugin but couldn't find it

Edit: is it possible or not with new menu style?


Tried but i can not press the category:
PHP Code:
public CreateSubMenuid )
{
    new 
szPlayersMAX_PLAYERS ], iNumszID], iMenu menu_create"Test""SubMenuHandler" );
    
get_playersszPlayersiNum"ch" );
    
    for( new 
iNumi++)
    {
        
num_to_striszIDcharsmaxszID ) );
        
menu_additemiMenufmt"%n"id ), szID );
    }
    
    
menu_setpropiMenuMPROP_BACKNAME"\wReplace item" )
    
    if( !
menu_pagesiMenu ) )
    {
        
client_printidprint_chat"There's no players found...")
    }
    else 
menu_displayidiMenu, .page );

    return 
PLUGIN_HANDLED;
}

public 
SubMenuHandleridiMenuiItem 
{
    switch( 
iItem )
    {
        case 
MENU_EXITmenu_destroyiMenu );
        case 
MENU_BACKclient_print_coloridprint_team_default"^4[Items]^1 Test category number 8^1.")
    }

    return 
PLUGIN_HANDLED;

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 02-25-2022 at 15:23.
Supremache is offline