From a85fa2981cd0ae56756b8cad4094966a1e981db0 Mon Sep 17 00:00:00 2001 From: BotoX <botox@botox.bz> Date: Mon, 24 Apr 2017 16:01:51 +0200 Subject: [PATCH] SteamCore: Add config autoexec and error reporting. --- SteamCore/scripting/steamcore.sp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SteamCore/scripting/steamcore.sp b/SteamCore/scripting/steamcore.sp index 15dd9456..36a520ab 100644 --- a/SteamCore/scripting/steamcore.sp +++ b/SteamCore/scripting/steamcore.sp @@ -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.");