AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   multiple menus (https://forums.alliedmods.net/showthread.php?t=24751)

genesis 03-01-2006 22:52

multiple menus
 
1 Attachment(s)
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?

Kraugh 03-01-2006 23:51

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.


All times are GMT -4. The time now is 20:24.

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