Raised This Month: $28 Target: $400
 7% 

CS:GO next page menu crash after update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 07-07-2018 , 05:19   CS:GO next page menu crash after update
Reply With Quote #1

After today's update, when you hit 8 to go to the next menu page, the server crashes and quits without logs or error messages. Can someone confirm?

Code used to test:
Code:
#pragma semicolon 1
#include <sourcemod>
#pragma newdecls required

public void OnPluginStart()
{
	HookEvent("player_team", Event_Player_Team_Post, EventHookMode_Post);
}

public Action Event_Player_Team_Post(Handle event, const char[] name, bool dontBroadcast)
{
	int client = GetClientOfUserId(GetEventInt(event, "userid"));
	GiveMenu(client);
}

public void GiveMenu(int client)
{
	Menu menu = new Menu(MenuHandler);
	SetMenuExitButton(menu, false);
	SetMenuTitle(menu, "TEST");
	for (int i = 0; i < 10; i++)
	{
		char buffer[8];
		IntToString(i, buffer, sizeof(buffer));
		AddMenuItem(menu, buffer, "Test");
	}
	DisplayMenu(menu, client, MENU_TIME_FOREVER);
}

public int MenuHandler(Handle menu, MenuAction action, int param1, int param2)
{
	if (action == MenuAction_Select)
	{
		
	}
	else if (action == MenuAction_End)
	{
		CloseHandle(menu);
	}
}
joao7yt is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 07-07-2018 , 05:35   Re: CS:GO next page menu crash after update
Reply With Quote #2

Here works fine
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 07-07-2018 , 05:37   Re: CS:GO next page menu crash after update
Reply With Quote #3

Quote:
Originally Posted by Papero View Post
Here works fine
The next page at least doesnít appear? Or is everything really working fine?
joao7yt is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 07-07-2018 , 05:49   Re: CS:GO next page menu crash after update
Reply With Quote #4

Quote:
Originally Posted by joao7yt View Post
The next page at least doesnít appear? Or is everything really working fine?
I can see all the pages properly
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 07-07-2018 , 05:51   Re: CS:GO next page menu crash after update
Reply With Quote #5

Quote:
Originally Posted by Papero View Post
I can see all the pages properly
Then idk whatís happening... iím using the exact same code for testing, crashes every time. Crashes with or without panorama. Iím on windows btw
joao7yt is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 07-07-2018 , 06:04   Re: CS:GO next page menu crash after update
Reply With Quote #6

Quote:
Originally Posted by joao7yt View Post
Then idk whatís happening... iím using the exact same code for testing, crashes every time. Crashes with or without panorama. Iím on windows btw
My server is on linux, maybe that's the issue, idk
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!
Papero is offline
Degeso
New Member
Join Date: Jan 2018
Location: Germany
Old 07-07-2018 , 06:04   Re: CS:GO next page menu crash after update
Reply With Quote #7

can confirm, next page is crashing using Windows.
Was using the 1.9.0 dev branch and the code provided above.
Degeso is offline
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 07-07-2018 , 06:07   Re: CS:GO next page menu crash after update
Reply With Quote #8

Quote:
Originally Posted by Papero View Post
My server is on linux, maybe that's the issue, idk
Quote:
Originally Posted by Degeso View Post
can confirm, next page is crashing using Windows.
Was using the 1.9.0 dev branch and the code provided above.
Thatís it. Good to know itís not only me. Hope devs see this
joao7yt is offline
Reply


Thread Tools
Display Modes

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 05:03.


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