BUG VIP Admin `Exception reported: ThrowNativeError & VIP_GiveClientVIP`
I'm using version DEV 3.1 with the VIP Admin and VIP Admin Privileges modules, follow the code of the version I use below.
VIP Admin & Admin Privileges.zip
In theory everything would be working correctly, players with VIP added by VIP Core have access to everything I configured with the flag a.
And the players I added VIP through SourceBans++ also have access to VIP Core privileges normally.
However, in the server console I am receiving this error:
L 09/16/2023 - 19:06:53: [SM] Exception reported: The player Death<6><STEAM_1:0:232114543><> is already a VIP
L 09/16/2023 - 19:06:53: [SM] Blaming: VIP_Core.smx
L 09/16/2023 - 19:06:53: [SM] Call stack trace:
L 09/16/2023 - 19:06:53: [SM] [0] ThrowNativeError
L 09/16/2023 - 19:06:53: [SM] [1] Line 639, vip\API.sp::API_GiveClientVIP
L 09/16/2023 - 19:06:53: [SM] [2] Line 591, vip\API.sp::Native_GiveClientVIP
L 09/16/2023 - 19:06:53: [SM] [4] VIP_GiveClientVIP
L 09/16/2023 - 19:06:53: [SM] [5] Line 145, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::LoadVIPClient
L 09/16/2023 - 19:06:53: [SM] [6] Line 107, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::Timer_Delay
L 09/16/2023 - 19:18:46: [SM] Exception reported: The player -Spectree<7><STEAM_1:0:433052156><> is already a VIP
L 09/16/2023 - 19:18:46: [SM] Blaming: VIP_Core.smx
L 09/16/2023 - 19:18:46: [SM] Call stack trace:
L 09/16/2023 - 19:18:46: [SM] [0] ThrowNativeError
L 09/16/2023 - 19:18:46: [SM] [1] Line 639, vip\API.sp::API_GiveClientVIP
L 09/16/2023 - 19:18:46: [SM] [2] Line 591, vip\API.sp::Native_GiveClientVIP
L 09/16/2023 - 19:18:46: [SM] [4] VIP_GiveClientVIP
L 09/16/2023 - 19:18:46: [SM] [5] Line 145, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::LoadVIPClient
L 09/16/2023 - 19:18:46: [SM] [6] Line 107, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::Timer_Delay
L 09/16/2023 - 19:26:58: [SM] Exception reported: The player Death<8><STEAM_1:0:232114543><> is already a VIP
L 09/16/2023 - 19:26:58: [SM] Blaming: VIP_Core.smx
L 09/16/2023 - 19:26:58: [SM] Call stack trace:
L 09/16/2023 - 19:26:58: [SM] [0] ThrowNativeError
L 09/16/2023 - 19:26:58: [SM] [1] Line 639, vip\API.sp::API_GiveClientVIP
L 09/16/2023 - 19:26:58: [SM] [2] Line 591, vip\API.sp::Native_GiveClientVIP
L 09/16/2023 - 19:26:58: [SM] [4] VIP_GiveClientVIP
L 09/16/2023 - 19:26:58: [SM] [5] Line 145, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::LoadVIPClient
L 09/16/2023 - 19:26:58: [SM] [6] Line 107, D:\ZK Servidores™\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::Timer_Delay
L 09/16/2023 - 19:58:29: Error log file session closed.
Every help is welcome.
we need to fix module VIP_Admin.sp =)
I have already fixed it, later I will find and send you the solution
@R1KO I'm waiting... Just to update the Admin Privileges plugin, when we update/add VIP for players other than through VIP Core, sourcebans for example generates this error in the console log.
L 09/18/2023 - 23:56:33: [SM] Exception reported: AdminId 0 is invalid
L 09/18/2023 - 23:56:33: [SM] Blaming: vip/VIP_AdminPrivileges.smx
L 09/18/2023 - 23:56:33: [SM] Call stack trace:
L 09/18/2023 - 23:56:33: [SM] [0] SetUserAdmin
L 09/18/2023 - 23:56:33: [SM] [1] Line 225, C:\Google Drive\ZK Servidores\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_AdminPrivileges.sp::restoreRights
L 09/18/2023 - 23:56:33: [SM] [2] Line 131, C:\Google Drive\ZK Servidores\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_AdminPrivileges.sp::VIP_OnVIPClientRemoved
L 09/18/2023 - 23:56:33: [SM] [4] Call_Finish
L 09/18/2023 - 23:56:33: [SM] [5] Line 104, vip\API.sp::CallForward_OnVIPClientRemoved
L 09/18/2023 - 23:56:33: [SM] [6] Line 733, vip\API.sp::API_RemoveClientVIP
L 09/18/2023 - 23:56:33: [SM] [7] Line 693, vip\API.sp::Native_RemoveClientVIP2
L 09/18/2023 - 23:56:33: [SM] [9] VIP_RemoveClientVIP2
L 09/18/2023 - 23:56:33: [SM] [10] Line 197, D:\ZK Servidores\Servidores CSGO\Editar Plugins\addons\sourcemod\scripting\VIP_Admin.sp::Timer_RebuildDelay
News? Unfortunately, some plugins do not allow access to VIP players due to the error.