Raised This Month: $ Target: $400
 0% 

Solved how to call this method?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 03-13-2021 , 09:12   how to call this method?
Reply With Quote #1

i try to call IsHibernating, the server crashes.

PHP Code:
StartPrepSDKCall(SDKCall_Raw);
if (
PrepSDKCall_SetFromConf(hGameDataSDKConf_Signature"CGameServer::IsHibernating") == false)
{
    
LogError("Failed to find signature: CGameServer::IsHibernating");
}
else
{
    
PrepSDKCall_SetReturnInfo(SDKType_BoolSDKPass_Plain);
    
g_hSDK_Call_IsHibernating EndPrepSDKCall();
    if (
g_hSDK_Call_IsHibernating == null)
        
LogError("Failed to create SDKCall: CGameServer::IsHibernating");
}

stock bool IsHibernating()
{
    return 
SDKCall(g_hSDK_Call_IsHibernating);

gamedata

Code:
"CGameServer::IsHibernating"
{
  "library"		"engine"
  "linux"		"@_ZNK11CGameServer13IsHibernatingEv"
}

Last edited by ProjectSky; 03-18-2021 at 06:46.
ProjectSky is offline
 



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 03:35.


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