Raised This Month: $ Target: $400
 0% 

Music Game


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
retoxx
Junior Member
Join Date: Jul 2012
Old 08-18-2012 , 06:12   Music Game
Reply With Quote #1

The thing is that I have a Music Game where you can start music and stop the music but when I click "STOP" the music keeps playing.

PHP Code:
public Dans_handler(idmenuitem)
{
    if (
item == MENU_EXIT)
        {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], iName[64]
    new 
accescallback
    menu_item_getinfo
(menuitemaccesdata,5iName63callback)
    
    new 
key str_to_num(data)
    
    switch(
key)
    { 
        case 
1
        {
            
client_cmd(0"spk %s"g_szSound3)
            
set_dhudmessage(255850, -1.00.1222.02.0)
            
show_dhudmessage(id"[OG-G] DaysMenu ^n Dance until the music stops!"
        }
        case 
2:    client_cmd(0"spk stop")
    
        
    }
    
    return 
PLUGIN_HANDLED

retoxx is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-18-2012 , 06:28   Re: Music Game
Reply With Quote #2

"spk stop" doesn't exist. Use "stopsound".
__________________
Arkshine is offline
retoxx
Junior Member
Join Date: Jul 2012
Old 08-18-2012 , 06:40   Re: Music Game
Reply With Quote #3

Solved.

Last edited by retoxx; 08-18-2012 at 06:51.
retoxx is offline
Reply


Thread Tools
Display Modes

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 05:42.


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