Raised This Month: $ Target: $400
 0% 

Unknown fault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 03-30-2011 , 14:52   Re: Unknown fault
Reply With Quote #7

Somehow, still the same:

PHP Code:
register_menucmd(register_menuid("Extras:"),            1023"ExtraMenuCmd" )

public 
ExtraMenuCmdidkey )
{
    
// Track which Option was chosen
    
g_nMenuOption[id-1] = g_nMenuPosition[id-1] * MAX_DISPLAY key

    
switch( key )
    {
        case 
8:
        {
            
// User Selected "More..." Option
            
ShowExtraMenuid, ++g_nMenuPosition[id-1] )
        }
        case 
9:
        {
            
// User Chose to go Back to Previous Menu
            
if( g_nMenuPosition[id-1] )
            {
                
ShowExtraMenuid, --g_nMenuPosition[id-1] )
            }else
            {
                
ShowMainMenuid )
            }
        }
        default: 
ShowPlayerMenuidg_nMenuPosition[id-1] = )
    }
    return 
PLUGIN_HANDLED
}

public 
ShowExtraMenuidpos )
{
    if( 
pos ) return

    new 
i0nStartnEndnLennKeys = (1<<9)
    new 
szMenuBody[512]

    
nStart pos MAX_DISPLAY

    
if( nStart >= MO_MAX_EXTRA )
        
nStart pos g_nMenuPosition[id-1] = 0

    nLen 
formatszMenuBody511"\yExtras: %d/2^n\w^n^n"pos )

    
nEnd nStart MAX_DISPLAY
    
if( nEnd MO_MAX_EXTRA nEnd MO_MAX_EXTRA

    
for( nStartnEndi++ )
    {
        
nKeys |= (1<<j++)
        
//nLen += format( szMenuBody[nLen], (511-nLen), "\r%d. \w%s^n", j, g_szExtraMenuTxt[i] )
    
nLen += formatszMenuBody[nLen], (511-nLen), "%s%d. %s%s^n""\r"j"\w"g_szExtraMenuTxt[i] )
    }

    if( 
nEnd != MO_MAX_EXTRA )
    {
        
formatszMenuBody[nLen], (511-nLen), "^n\r9. \wMore...^n\r0. \wBack" )
        
nKeys |= (1<<8)
    }
    else 
formatszMenuBody[nLen], (511-nLen), "^n\r0. \wBack" )

    
show_menuidnKeysszMenuBody, -)
    return

bibu 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 14:36.


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