SteamCore: Add config autoexec and error reporting.

This commit is contained in:
BotoX 2017-04-24 16:01:51 +02:00
parent 750e203c22
commit a85fa2981c

View File

@ -12,7 +12,7 @@
#include <SteamWorks>
#define PLUGIN_URL ""
#define PLUGIN_VERSION "1.7"
#define PLUGIN_VERSION "1.7.1"
#define PLUGIN_NAME "SteamCore"
#define PLUGIN_AUTHOR "Statik"
@ -91,6 +91,8 @@ public OnPluginStart()
HookConVarChange(cvarDebug, OnDebugStatusChange);
timeSinceLastLogin = TOKEN_LIFETIME;
AutoExecConfig(true, "plugin.steamcore");
}
public OnLoginInfoChange(Handle:cvar, const String:oldVal[], const String:newVal[])
@ -671,6 +673,9 @@ public cbkGroupInvite(Handle:response, bool:failure, bool:requestSuccessful, EHT
if (!StrEqual(result, "OK"))
{
PrintDebug(caller, "Error: ");
PrintDebug(caller, result);
if (StrEqual(result, "The invitation to that player failed. Please try again.\n\nError code: 19"))
{
PrintDebug(caller, "Invite failed. Incorrect invitee id on request or another error.");