Raised This Month: $40 Target: $400
 10% 

HTTP callback function giving error 147 on compile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dropslays
Junior Member
Join Date: Feb 2016
Old 05-12-2017 , 02:59   HTTP callback function giving error 147 on compile
Reply With Quote #1

I need to use new-style declarations in my callback function here, but I can't for the life of me figure out what's wrong with it. Any help would be appreciated.

PHP Code:
HTTPRequestHandle hPost Steam_CreateHTTPRequest(HTTPMethod_POST"http://192.168.1.12:3000/api/matchover");
Steam_SetHTTPRequestGetOrPostParameterhPost"matchid""5" );
Steam_SetHTTPRequestGetOrPostParameterhPost"winningteam""testing" );  
Steam_SendHTTPRequesthPostHTTPRequestComplete );

public 
HTTPRequestComplete(HTTPRequestHandle HTTPRequestbool requestSuccessfulHTTPStatusCode statusCode) {
        
ServerCommand("endmatch");
        return;

dropslays is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-12-2017 , 23:14   Re: HTTP callback function giving error 147 on compile
Reply With Quote #2

You are missing the return value, which should be void, but needs to be int to maintain backwards-compatibility.
__________________
asherkin 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:27.


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