Raised This Month: $ Target: $400
 0% 

[ES] AYUDA CONTRUCION DE MENU


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[FG]Wanted
BANNED
Join Date: Nov 2009
Old 12-23-2009 , 20:55   [ES] AYUDA CONTRUCION DE MENU
#1

Necesito un menu donde me detecte los players que hay y al selecionar alguno , le de 150 de vida gracias yo habia pensado algo asi:

PHP Code:
public ShowPlayerMenuidpos )
{
    if( 
pos ) return

    
get_playersg_nMenuPlayers[id-1], g_nMenuPlayersNum[id-1] )

    new 
i0idx
    
new szUserName[32], szMenuBody[512]
    new 
nStart pos MAX_DISPLAY

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

    
new nLen formatszMenuBody511"\yPlayers Menu:\R%d/%d^n\w^n", (pos+1), (g_nMenuPlayersNum[id-1] / MAX_DISPLAY + ((g_nMenuPlayersNum[id-1] % MAX_DISPLAY) ? )) )
    new 
nEnd nStart MAX_DISPLAY
    
new nKeys = (1<<9)

    if( 
nEnd g_nMenuPlayersNum[id-1] )
        
nEnd g_nMenuPlayersNum[id-1]

    for( 
nStartnEndi++ )
    {
        
idx g_nMenuPlayers[id-1][i]
        
get_user_nameidxszUserName31 )

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

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

    
show_menuidnKeysszMenuBody )
    return

Pero luego nose como segir gracias.-
[FG]Wanted is offline
Send a message via ICQ to [FG]Wanted Send a message via AIM to [FG]Wanted Send a message via MSN to [FG]Wanted Send a message via Yahoo to [FG]Wanted
 



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 11:31.


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