AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] CountDown Menu Bugged (https://forums.alliedmods.net/showthread.php?t=223256)

Cheezpuff 08-11-2013 11:32

[HELP] CountDown Menu Bugged
 
I built CountDown menu, to my JB ..
Everything works well, but I added a few things in shares SWITCH
PHP Code:

    formatexszMenucharsmaxszMenu ), "\wTime: \r[\y%i Seconds\r]"g_szTimesDatag_iTimeclient ] ] );
    
    
menu_additemiMenuszMenu );
    
    
formatexszMenucharsmaxszMenu ), "\wFreeze: \r[\y%s\r]"g_szFreezeDatag_iFreezeclient ] ] );
    
    
menu_additemiMenuszMenu );
    
    
formatexszMenucharsmaxszMenu ), "\wVoice: \r[\y%s\r]^n"g_bVoice "Enabled" "Disabled" );
    
    
menu_additemiMenuszMenu );
    
    
menu_additemiMenu"\wStart The Countdown" );
    
    
menu_displayclientiMenu);
    
    return 
1;


PHP Code:

    switch ( item )
    {
        case 
0:        ( g_iTimeclient ] >= sizeof g_szTimesData ) ? ( g_iTimeclient ] = ) : ( g_iTimeclient ] += );
        
        case 
1:        ( g_iFreezeclient ] >= sizeof g_szFreezeData ) ? ( g_iFreezeclient ] = ) : ( g_iFreezeclient ] += );
        
        case 
2:        g_bVoice = !g_bVoice;
        
        case 
3:        return CmdStartCountdownclient );
    }
    
    
CmdCountdownMenuclient );
    
    return 
1;


You can not change the shares, and I have no idea why -. -


All times are GMT -4. The time now is 15:50.

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