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

Solved GetFeatureStatus - Strange Behaviour


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-19-2017 , 09:51   GetFeatureStatus - Strange Behaviour
Reply With Quote #1

Hey,

Since the CS:GO update 2 days back. It appears that this macro is returning false for some unknown reason:
Code:
#define STEAMWORKS_AVAILABLE()	(GetFeatureStatus(FeatureType_Native, "SteamWorks_IsLoaded") == FeatureStatus_Available)
If i replace the calls to STEAMWORKS_AVAILABLE to SteamWorks_IsLoaded - everything appears work fine.

Has anyone else had this type of weird behaviour since the last CS:GO patch?

Thanks in advance

Edit:
You can see the code in question here.

Edit 2:
This is really strange because It's only happening with motdf.smx - Every other plugin I'm running right now is detecting SteamWorks correctly, Using exactly the same macro.

Edit 3:
Found the problem.

GetFeatureStatus will only work with a function that your calling inside your plugin not for the extension as a whole. So make sure that when using GetFeatureStatus - It's actually a function you're calling inside your base plugin - Not just the extension itself.
For example, I was using SteamWorks_IsLoaded() and not actually calling that function directly inside the plugin. Which made GetFeatureStatus return false.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 08-19-2017 at 20:00.
dubbeh is offline
Reply


Thread Tools
Display Modes

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 21:45.


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