Raised This Month: $ Target: $400
 0% 

Music player with menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Timoses
Member
Join Date: Mar 2006
Location: Germany, NRW
Old 03-22-2006 , 09:35  
Reply With Quote #10

It doesn't work!!!
Code:
public bar_play_music(id,key) {     if(!is_user_alive(id)) return PLUGIN_HANDLED     new origin[3]     get_user_origin(id,origin)     if(get_distance(origin,bar_tv) > 25.0) return PLUGIN_HANDLED     if(key == 6) return PLUGIN_HANDLED     if(key == 0) client(id, "mp3 play Pimplordz/Music/austin2.mp3")     if(key == 1) client_cmd(id,"play Pimplordz/Music/gman.wav")     if(key == 2) client_cmd(id, "play Pimplordz/Music/gman.wav")     if(key == 3) client_cmd(id," play Pimplordz/Music/gman.wav")     if(key == 4) client_cmd(id, " play Pimplordz/Music/gman.wav")     if(key == 5)     bar_play_music_show(id)     return PLUGIN_HANDLED }

I think something is wrong with the if clauses.
Because if I put this

Code:
public bar_play_music_show(id) {     new body[256]     new key = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<9)     new len = format(body,sizeof(body),"Music Player^n^n")     add(body,sizeof(body),"1. Austin Powers^n")     add(body,sizeof(body),"2. Will Smith - Switch^n")     add(body,sizeof(body),"3. Happy Music o.o^n")     add(body,sizeof(body),"4. Sad Music :(^n")     add(body,sizeof(body),"5. Pulp Fiction^n")     add(body,sizeof(body),"6. What is love?")     add(body,sizeof(body),"^n0. Close Menu^n")     client_cmd(id, "play Pimplordz/Music/gman.wav")      //here I put the command                                                                                     //if I open the menu "Music Player" then the sound plays!     show_menu(id,key,body)     return PLUGIN_HANDLED }
Timoses is offline
Send a message via ICQ to Timoses Send a message via MSN to Timoses
 



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 16:47.


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