Raised This Month: $ Target: $400
 0% 

Unknown fault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 03-26-2011 , 18:49   Unknown fault
Reply With Quote #1

I don't really know where the fault is, with the edited one, if I press any key, nothing happens. I just added \r, \w before the numbers and changed the header of menu:

Original:

PHP Code:
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 Menu:\R%d/2^n\w^n"pos )

    
nEnd nStart MAX_DISPLAY
    
if( nEnd MO_MAX_EXTRA nEnd MO_MAX_EXTRA

    
for( nStartnEndi++ )
    {
        
nKeys |= (1<<j++)
        
nLen += formatszMenuBody[nLen], (511-nLen), "%d. %s^n"jg_szExtraMenuTxt[i] )
    }

    if( 
nEnd != MO_MAX_EXTRA )
    {
        
formatszMenuBody[nLen], (511-nLen), "^n9. More...^n0. Back" )
        
nKeys |= (1<<8)
    }
    else 
formatszMenuBody[nLen], (511-nLen), "^n0. Back" )

    
show_menuidnKeysszMenuBody, -)
    return

Edited:

PHP Code:
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"\yExtra Menu: %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 += formatszMenuBody[nLen], (511-nLen), "\r%d. \w%s^n"jg_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