Raised This Month: $32 Target: $400
 8% 

Solved [CS:GO] Invalid Handle 0 (error 4)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 04-20-2020 , 15:09   [CS:GO] Invalid Handle 0 (error 4)
Reply With Quote #1

Hi, I'm trying to do some SDKCalls to the function "CAttributeList::SetOrAddAttributeValueByName " on Linux but it's always giving me this error:

Code:
L 04/20/2020 - 20:03:27: [SM] Exception reported: Invalid Handle 0 (error 4)
L 04/20/2020 - 20:03:27: [SM] Blaming: bot_stuff.smx
L 04/20/2020 - 20:03:27: [SM] Call stack trace:
L 04/20/2020 - 20:03:27: [SM]   [0] SDKCall
L 04/20/2020 - 20:03:27: [SM]   [1] Line 15663, bot_stuff.sp::SetAttribute
L 04/20/2020 - 20:03:27: [SM]   [2] Line 10666, bot_stuff.sp::OnWeaponEquipPost
Here's how I'm doing the SDKCall things:

PHP Code:
hGameConfi LoadGameConfigFile("attributes.games");
if (
hGameConfi == INVALID_HANDLE)
    
SetFailState("Failed to found attributes.games game config.");
    
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(hGameConfigSDKConf_Signature"CAttributeList::SetOrAddAttributeValueByName");
PrepSDKCall_AddParameter(SDKType_StringSDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
hSetAttribute EndPrepSDKCall(); 
PHP Code:
public void SetAttribute(int entitychar[] attributenameint value)
{
    
SDKCall(hSetAttributeentityattributenamevalue);

Anyone knows why it's always giving me the Invalid Handle error?
__________________

Last edited by manicogaming; 04-20-2020 at 22:09.
manicogaming is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 04-20-2020 , 16:16   Re: [CS:GO] Invalid Handle 0 (error 4)
Reply With Quote #2

CloseHandle is missing
Kellan123 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode