| 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:
formatex( szMenu, charsmax( szMenu ), "\wTime: \r[\y%i Seconds\r]", g_szTimesData[ g_iTime[ client ] ] ); menu_additem( iMenu, szMenu ); formatex( szMenu, charsmax( szMenu ), "\wFreeze: \r[\y%s\r]", g_szFreezeData[ g_iFreeze[ client ] ] ); menu_additem( iMenu, szMenu ); formatex( szMenu, charsmax( szMenu ), "\wVoice: \r[\y%s\r]^n", g_bVoice ? "Enabled" : "Disabled" ); menu_additem( iMenu, szMenu ); menu_additem( iMenu, "\wStart The Countdown" ); menu_display( client, iMenu, 0 ); return 1; }
PHP Code:
switch ( item ) { case 0: ( g_iTime[ client ] >= sizeof g_szTimesData - 1 ) ? ( g_iTime[ client ] = 0 ) : ( g_iTime[ client ] += 1 ); case 1: ( g_iFreeze[ client ] >= sizeof g_szFreezeData - 1 ) ? ( g_iFreeze[ client ] = 0 ) : ( g_iFreeze[ client ] += 1 ); case 2: g_bVoice = !g_bVoice; case 3: return CmdStartCountdown( client ); } CmdCountdownMenu( client ); return 1; }
You can not change the shares, and I have no idea why -. -
|