Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Exception reported: Client 12 is not in game" #723

Merged
merged 3 commits into from
Jul 12, 2018
Merged

Fix "Exception reported: Client 12 is not in game" #723

merged 3 commits into from
Jul 12, 2018

Conversation

komashchenko
Copy link
Contributor

L 11/19/2017 - 16:37:02: [SM] Exception reported: Client 12 is not in game
L 11/19/2017 - 16:37:02: [SM] Blaming: adminhelp.smx
L 11/19/2017 - 16:37:02: [SM] Call stack trace:
L 11/19/2017 - 16:37:02: [SM] [0] PrintToConsole
L 11/19/2017 - 16:37:02: [SM] [1] Line 105, /home/builds/sourcemod/linux-1.9/build/plugins/adminhelp.sp::HelpCmd

@@ -58,6 +58,8 @@ public void OnPluginStart()

public Action HelpCmd(int client, int args)
{
if(!IsClientInGame(client)) return Plugin_Handled;
Copy link
Contributor

@WildCard65 WildCard65 Nov 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick: Please make the style match the rest of the file, see line 78-81(after additions).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so close to being right, but breaks console support and moves the error (reliably) there as rcon/console is 0.

@@ -58,6 +58,8 @@ public void OnPluginStart()

public Action HelpCmd(int client, int args)
{
if(!IsClientInGame(client)) return Plugin_Handled;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so close to being right, but breaks console support and moves the error (reliably) there as rcon/console is 0.

@KyleSanderson KyleSanderson merged commit 52cdbb4 into alliedmodders:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants