Raised This Month: $344 Target: $400
 86%   Almost there!

SteamWorks.inc error building on Windows


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spinningturtle69
New Member
Join Date: Aug 2022
Old 08-18-2022 , 15:20   SteamWorks.inc error building on Windows
Reply With Quote #1

Hi! Trying to build my plugin using SteamWorks which I've downloaded from here (https://users.alliedmods.net/~kyles/builds/SteamWorks/), but I'm getting a nasty error:

Code:
D:\CSGOServer\csgo\csgo\addons\sourcemod\scripting\include\SteamWorks.inc(273) : error 183: brackets after variable name indicates a fixed-size array, but size is missing or not constant

D:\CSGOServer\csgo\csgo\addons\sourcemod\scripting\include\SteamWorks.inc(274) : error 183: brackets after variable name indicates a fixed-size array, but size is missing or not constant

D:\CSGOServer\csgo\csgo\addons\sourcemod\scripting\include\SteamWorks.inc(275) : error 183: brackets after variable name indicates a fixed-size array, but size is missing or not constant
Using Windows and SourcePawn Compiler 1.12.0.6920. Also tried 1.11 build.

Any idea why this is? For reference, the code it's complaining about looks like this in SteamWorks.inc:
Code:
typeset SteamWorksHTTPBodyCallback
{
	function void (const char sData[]);
	function void (const char sData[], any value);
	function void (const int data[], any value, int datalen);
};
spinningturtle69 is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 08-18-2022 , 23:25   Re: SteamWorks.inc error building on Windows
Reply With Quote #2

PHP Code:
typeset SteamWorksHTTPBodyCallback
{
    function 
void (const char[] sData);
    function 
void (const char[] sDataany value);
    function 
void (const int[] dataany valueint datalen);
}; 
__________________
Grey83 is offline
spinningturtle69
New Member
Join Date: Aug 2022
Old 08-19-2022 , 10:02   Re: SteamWorks.inc error building on Windows
Reply With Quote #3

Quote:
Originally Posted by Grey83 View Post
PHP Code:
typeset SteamWorksHTTPBodyCallback
{
    function 
void (const char[] sData);
    function 
void (const char[] sDataany value);
    function 
void (const int[] dataany valueint datalen);
}; 
So SteamWorks is outdated? Is there an up-to-date version of SteamWorks for SourceMod?
spinningturtle69 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-19-2022 , 16:27   Re: SteamWorks.inc error building on Windows
Reply With Quote #4

typos.
Just edit inc file and compile.

*edit
https://github.com/KyleSanderson/SteamWorks/releases

There are no windows build more... have to do yourself
__________________
Do not Private Message @me

Last edited by Bacardi; 08-19-2022 at 16:34.
Bacardi 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 08:33.


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