AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   CS:GO next page menu crash after update (https://forums.alliedmods.net/showthread.php?t=308889)

joao7yt 07-07-2018 05:19

CS:GO next page menu crash after update
 
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);
        }
}


Papero 07-07-2018 05:35

Re: CS:GO next page menu crash after update
 
Here works fine

joao7yt 07-07-2018 05:37

Re: CS:GO next page menu crash after update
 
Quote:

Originally Posted by Papero (Post 2601612)
Here works fine

The next page at least doesn’t appear? Or is everything really working fine?

Papero 07-07-2018 05:49

Re: CS:GO next page menu crash after update
 
Quote:

Originally Posted by joao7yt (Post 2601613)
The next page at least doesn’t appear? Or is everything really working fine?

I can see all the pages properly

joao7yt 07-07-2018 05:51

Re: CS:GO next page menu crash after update
 
Quote:

Originally Posted by Papero (Post 2601616)
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

Papero 07-07-2018 06:04

Re: CS:GO next page menu crash after update
 
Quote:

Originally Posted by joao7yt (Post 2601617)
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

Degeso 07-07-2018 06:04

Re: CS:GO next page menu crash after update
 
can confirm, next page is crashing using Windows.
Was using the 1.9.0 dev branch and the code provided above.

joao7yt 07-07-2018 06:07

Re: CS:GO next page menu crash after update
 
Quote:

Originally Posted by Papero (Post 2601621)
My server is on linux, maybe that's the issue, idk

Quote:

Originally Posted by Degeso (Post 2601622)
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


All times are GMT -4. The time now is 16:38.

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