Skip to content

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

Merged
KyleSanderson merged 3 commits intoalliedmodders:masterfrom
komashchenko:master
Jul 12, 2018
Merged

Fix "Exception reported: Client 12 is not in game"#723
KyleSanderson merged 3 commits intoalliedmodders:masterfrom
komashchenko:master

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


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.


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