Raised This Month: $32 Target: $400
 8% 

CreateMenuEx is not working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PeEzZ
Senior Member
Join Date: Jan 2014
Location: Hungary
Old 08-13-2018 , 06:03   CreateMenuEx is not working?
Reply With Quote #1

I want to use in csgo but i got mismatch when i compile the plugin:
Code:
new Handle: menu = CreateMenuEx(MenuStyle_Radio, Menu_TestMenu);
Code:
testmenu.sp(352) : warning 213: tag mismatch
And error when i want to use the menu:
Code:
L 08/13/2018 - 11:51:14: [SM] Exception reported: MenuStyle handle 1 is invalid (error 1) //WHEN MenuStyle_Valve
L 08/13/2018 - 11:51:14: [SM] Blaming: testmenu.smx
L 08/13/2018 - 11:51:14: [SM] Call stack trace:
L 08/13/2018 - 11:51:14: [SM]   [0] CreateMenuEx
L 08/13/2018 - 11:51:14: [SM]   [1] Line 352, testmenu.sp::OpenTestMenu
L 08/13/2018 - 11:51:14: [SM]   [2] Line 291, testmenu.sp::CMD_TestMenu

L 08/13/2018 - 11:52:00: [SM] Exception reported: MenuStyle handle 2 is invalid (error 7)  //WHEN MenuStyle_Radio
L 08/13/2018 - 11:52:00: [SM] Blaming: testmenu.smx
L 08/13/2018 - 11:52:00: [SM] Call stack trace:
L 08/13/2018 - 11:52:00: [SM]   [0] CreateMenuEx
L 08/13/2018 - 11:52:00: [SM]   [1] Line 352, testmenu.sp::OpenTestMenu
L 08/13/2018 - 11:52:00: [SM]   [2] Line 291, testmenu.sp::CMD_TestMenu
__________________
I MAKING MY PLUGINS/MAPS STILL, BUT I DON'T HAVE ENOUGH TIME, PLEASE STAND BY.
Sorry for my bad english, correct me if i'm wrong.
Magyarok írjanak PM-et ha fontos!

If you want, you can donate for me here
My plugins here / My maps here

Last edited by PeEzZ; 08-13-2018 at 06:07.
PeEzZ is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 08-13-2018 , 06:37   Re: CreateMenuEx is not working?
Reply With Quote #2

Code:
Handle hMenuStyle = GetMenuStyleHandle(view_as<MenuStyle>(MenuStyle_Radio));
if (hMenuStyle != null) {
	Menu menu = CreateMenuEx(hMenuStyle, Menu_TestMenu);
	// Do
}
SHUFEN is offline
Send a message via Skype™ to SHUFEN
PeEzZ
Senior Member
Join Date: Jan 2014
Location: Hungary
Old 08-13-2018 , 06:47   Re: CreateMenuEx is not working?
Reply With Quote #3

Thanks, the code is now good, but the Radio style show the default-looking sourcemod menu, and the Valve style is show nothing. Why?
__________________
I MAKING MY PLUGINS/MAPS STILL, BUT I DON'T HAVE ENOUGH TIME, PLEASE STAND BY.
Sorry for my bad english, correct me if i'm wrong.
Magyarok írjanak PM-et ha fontos!

If you want, you can donate for me here
My plugins here / My maps here

Last edited by PeEzZ; 08-13-2018 at 07:00.
PeEzZ is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 08-13-2018 , 06:55   Re: CreateMenuEx is not working?
Reply With Quote #4

Maybe CS: GO may not be able to use radio style, I don't sure.
SHUFEN is offline
Send a message via Skype™ to SHUFEN
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-13-2018 , 16:09   Re: CreateMenuEx is not working?
Reply With Quote #5

Radio style is the default (where supported), CS:GO doesn't support "Valve" style (which is the ESC menus from older games.)

Radio:


Valve:
__________________

Last edited by asherkin; 08-13-2018 at 16:09.
asherkin is offline
PeEzZ
Senior Member
Join Date: Jan 2014
Location: Hungary
Old 08-14-2018 , 06:30   Re: CreateMenuEx is not working?
Reply With Quote #6

Oh, thanks.
So i can't use the "radio" style menu? (i mean the voice commands menus)
__________________
I MAKING MY PLUGINS/MAPS STILL, BUT I DON'T HAVE ENOUGH TIME, PLEASE STAND BY.
Sorry for my bad english, correct me if i'm wrong.
Magyarok írjanak PM-et ha fontos!

If you want, you can donate for me here
My plugins here / My maps here

Last edited by PeEzZ; 08-14-2018 at 08:10.
PeEzZ is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 08-14-2018 , 09:10   Re: CreateMenuEx is not working?
Reply With Quote #7

These fields are drawing on the client side. We can't hook / custom for radio voice menu.
SHUFEN is offline
Send a message via Skype™ to SHUFEN
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:58.


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