AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SteamTools (https://forums.alliedmods.net/forumdisplay.php?f=147)
-   -   Does SteamTools no longer work? I've got a deprecated error with steamtools.inc (https://forums.alliedmods.net/showthread.php?t=335721)

El Diablo War3Evo 12-27-2021 17:55

Does SteamTools no longer work? I've got a deprecated error with steamtools.inc
 
Hi, I'm trying to get my old mod TF2 War3Source Evolution back up and running... ran into an error dealing with steamtools.inc can someone please help?

It's been years since I've done scripting for sourcemod... so, I was wondering if there was an update to steamtools.inc or ??


/addons/sourcemod/scripting/include/steamtools.inc(270) : fatal error 196: deprecated syntax; see https://wiki.alliedmods.net/SourcePa...yntax#Typedefs

It points to this part of the code:


Code:

-->> funcenum HTTPRequestComplete

{

        public(HTTPRequestHandle:HTTPRequest, bool:requestSuccessful, HTTPStatusCode:statusCode),

        public(HTTPRequestHandle:HTTPRequest, bool:requestSuccessful, HTTPStatusCode:statusCode, any:contextData),

};

I've downloaded steamtools-0.10.0-git179-54fdc51-linux.zip from https://builds.limetech.io/?p=steamtools

I'm using the steamtools.inc from steamtools-0.10.0-git179-54fdc51-linux.zip

El Diablo War3Evo 12-27-2021 18:09

Re: Does SteamTools no longer work? I've got a deprecated error with steamtools.inc
 
Ok... fixed that issue by updating part of that code:

Code:

typeset HTTPRequestComplete

{

        function Action (HTTPRequestHandle HTTPRequest, bool requestSuccessful, HTTPStatusCode statusCode);

        function Action (HTTPRequestHandle HTTPRequest, bool requestSuccessful, HTTPStatusCode statusCode, any contextData);

};

hope it doesn't give me errors later... lol


All times are GMT -4. The time now is 10:26.

Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.