[Help] Menu Problems
hello modders!
i'm not know how to explain what i'm trying to do, but i will do my best. OT: i want it so when i open the menu (weaponmenu) i will show 1. awp 2. deagle 3. fiveseven 4. he grenade 5. smokegrenade 6. heatseeking he when i press 1/2/3 it will open the submenus for awp,deagle and fiveseven. and when i press 4/5/6 i will buy a lvl. (he,smoke, heatseek) but now to my problem, the menu is showed like it is suppossed to do, but when i press 1 i buy first lvl of hegrenade, and when i press 2 i buy first lvl of smokegrenade :S i hope you understood what i meant. Regards, kDiosn Code:
enum _:g_iGrenCount |
Re: [Help] Menu Problems
PHP Code:
PHP Code:
PHP Code:
|
Re: [Help] Menu Problems
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Error: Array must be indexed (variable "iNumber") on line 1023 Warning: Expression has no effect on line 1116 Warning: Expression has no effect on line 1120 Warning: Expression has no effect on line 1124 1 Error. |
Re: [Help] Menu Problems
err...mistyped.
PHP Code:
|
Re: [Help] Menu Problems
still same problem ^.^
|
Re: [Help] Menu Problems
Did you moved everything after switches into switch case 4/5/6 ?
|
Re: [Help] Menu Problems
ye, i moved them to the spot there they was suppossed to be:)
i guess it's not suppossed to be case 4: he_grenade, case 5: smokegrenade and so on. = Warning: Expression has no effect :S Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.Code:
switch(key) |
Re: [Help] Menu Problems
kDiosn
Do you actually understand what you are doing? Try this, maybe it will be more clearly for you: PHP Code:
|
Re: [Help] Menu Problems
@SonicSonedit: If you looked at his WeaponMenu_Handle function, you'd see that he wants to use the following code for the grenade parts of the menu.
Code:
new iGren = str_to_num( data ), iCost, Level;Just move the above code into a default case for the switch statement. Look here at the switch example if you are confused. |
Re: [Help] Menu Problems
thanks for the reply emp. can u look what i have done wrong, it is still the same problem.
Code:
public WeaponMenu_Handle(iPlayer, menu, item) |
| All times are GMT -4. The time now is 04:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.