Items being purchased when a user selects menu option
Basically sometimes if the user is in a buyzone and opens one of my menus (from war3ft).. such as shopmenu, changerace...
The menu will execute correctly when they select an option, but sometimes it will also purchase an item and i have NO idea why, such as a smokegrenade.... Can anyone shed some light on why this is happening? Thanks, Josh |
Re: Items being purchased when a user selects menu option
What menus are you using, the new type or old school?
Also do you know if the buy menu was open prior to your menu? |
Re: Items being purchased when a user selects menu option
Buy menu not open...
And old-school menus... but I register them like this: Code:
|
Re: Items being purchased when a user selects menu option
Put in a menu tracer, so it dumps out the menu id when an action happens. I read in another post you had a similar problem with the radio activating.
Having a guess it might be something like your menu title is similar/matches the buy equipment title, which causes a conflict I think. I'm pretty certain I had a odd problem like this ages ago and I had to change my menu title. [edit] Download SHP Tools in my sig: hook_msg "ShowMenu" It'll intercept any menus and dump the info into your server console/logfile. |
Re: Items being purchased when a user selects menu option
So how do I actually start this? I did hook_msg "ShowMenu" as well as logfile 1, and i see log files no where :/
Josh |
Re: Items being purchased when a user selects menu option
Those are actually CVARs, not client/server commands.
|
Re: Items being purchased when a user selects menu option
So how do I start it?
|
Re: Items being purchased when a user selects menu option
Depending on your setup:
HLDS: hook_msg "ShowMenu" logfile 1 Ingame itself: amx_rcon hook_msg "ShowMenu" amx_rcon logfile 1 Also there is a problem with the precompiled amxx file be best to compile the script yourself until its fixed. |
Re: Items being purchased when a user selects menu option
I did this on server console:
hook_msg "ShowMenu" logfile 1 and nothing (and I compiled it myself) |
Re: Items being purchased when a user selects menu option
Did you open any menus after you setup your tracker?
type: listent in server console: if that fails then you couldn't of setup something correctly. Note: Something will only happen if ShowMenu is being sent, doesn't work on internal plugins yet! The purpose was to see if ShowMenu is being sent when you purchase something (ie buy, buyequip, radio1/2/3 menus etc) which is where your getting a conflict. |
| All times are GMT -4. The time now is 20:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.