Raised This Month: $ Target: $400
 0% 

Help with multiple menus plz!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-31-2006 , 12:23  
Reply With Quote #2

could it be coz all the menus have same menuid?

Code:
    register_menucmd(register_menuid("Volkswagon Sounds"), KeysVolkswagonSounds, "PressedVolkswagonSounds")     register_menucmd(register_menuid("Volkswagon Sounds"), KeysVolkswagonSounds2, "PressedVolkswagonSounds2")     register_menucmd(register_menuid("Volkswagon Sounds"), KeysVolkswagonSounds3, "PressedVolkswagonSounds3")

btw, u could make the plugin alot smaller by doing this:

Code:
new const g_szSounds1[7][] = {     "droppeditlikeitshott.mp3",     "fly.mp3",     "holdingitdown.mp3",     "itsucksair.mp3",     "listenup.mp3",     "repdutch.mp3",     "time2unpimp.mp3" } ... public PressedVolkswagonSounds(id, key) {     switch (key)       {         case 7:         {             ShowVolkswagonSounds2(id)         }         case 8:         {             END_MENU(id)         }         default:         {             client_cmd(id, "mp3 play ^"misc/vsounds/%s^"", g_szSounds1[key])         }     } }
__________________
plop
p3tsin is offline
 



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:25.


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