give weapon using menu
hi,
this used to work for me long time ago, its just a test plugin i used, it gives you a weapon through the menu when you type /menu in chat. Now it doesnt give players anything. PHP Code:
|
Re: give weapon using menu
A very important thing that you need to learn it debugging. This will do two things, it will minimize the number of questions you post here and it will generally make things quicker. Why wait a few days to get it to work when you can debug it and most likely solve the problem is a few hours(±)?
|
Re: give weapon using menu
Replace :
Code:
with Code:
|
Re: give weapon using menu
That register_menuid() always confused me. Apparently this way actually compares text to find out what function is supposed to be used with the menu. This is not explicitly stated in the Wiki unfortunately.
I would think it would make more sense to use a pointer to a registered menu and then reference it using the pointer in show_menu(). |
Re: give weapon using menu
By using register_menuid("Team_Select", true) you can hook :
Team_Select Team_Select_Spect IG_Team_Select IG_Team_Select_Spect IG_VIP_Team_Select IG_VIP_Team_Select_Spect |
Re: give weapon using menu
Quote:
|
Re: give weapon using menu
hmm... yeah ive seen it in my server console , bla bla has error debug not enabled ,
but i went to plugins.ini and under the plugin i wrote : Debug, went back to my server and it still said the same stuff |
Re: give weapon using menu
Write it next to the plugin.
Code:
sexy_weapon_menu.amxx debug |
Re: give weapon using menu
Also you only register keys 1 to 3 when you need the 4th one.
|
Re: give weapon using menu
I hate this styles of menu, its annoying and ugly :p
|
| All times are GMT -4. The time now is 14:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.