AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SteamTools (https://forums.alliedmods.net/forumdisplay.php?f=147)
-   -   HTTP callback function giving error 147 on compile (https://forums.alliedmods.net/showthread.php?t=297312)

dropslays 05-12-2017 01:59

HTTP callback function giving error 147 on compile
 
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;



asherkin 05-12-2017 22:14

Re: HTTP callback function giving error 147 on compile
 
You are missing the return value, which should be void, but needs to be int to maintain backwards-compatibility.


All times are GMT -4. The time now is 13:55.

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