Raised This Month: $ Target: $400
 0% 

multiple menus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-01-2006 , 23:51  
Reply With Quote #2

the key returned in your menu handler is the number pressed minus one. so, where you check if key == 1, you are checking if they pressed 2. "key" would be 0 if they chose 1. "key" would be 9 if they chose 0.

also, your key defines already exist in amxconst.inc as MENU_KEY_1, MENU_KEY_2, etcetera.
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
 



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 20:24.


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