Raised This Month: $ Target: $400
 0% 

multiple menus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 03-01-2006 , 22:52   multiple menus
Reply With Quote #1

Im kinda new to menus and this one is giving me a head ache, it seems like i simply cant do successive menus. I can do one time menus, but multiple menus just die after the first one, could someone look at the code, am I making an obvious mistake?
Attached Files
File Type: sma Get Plugin or Get Source (si2.sma - 768 views - 2.9 KB)
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis is offline
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
Reply



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