View Single Post
KewaiiGamer
Junior Member
Join Date: Aug 2017
Old 07-27-2018 , 12:27   Re: No MOTD in Panorama
Reply With Quote #120

Quote:
Originally Posted by Fastmancz View Post
I'm trying opened URL through Steam GUI web browser, but I get only error message from the server console:
\src\common\httpclient.cpp (2582) : Assertion Failed: pHost && *pHost

Original post: https://forums.alliedmods.net/showpo...40&postcount=2

The website still doesn't opened.

PHP Code:
#include <sourcemod>
#include <steamworks>

public void OnPluginStart()
{
    
RegConsoleCmd("sm_web"website);
}

public 
Action website(clientargs)
{
    
Handle request SteamWorks_CreateHTTPRequest(k_EHTTPMethodPOST"google.com"); //missing https:// or http:// - error reason.
    
SteamWorks_SetHTTPRequestGetOrPostParameter(request"steamid""STEAM_1:1");
    
SteamWorks_SendHTTPRequest(request);
    
PrintToChatAll("We are farmers!");

That happens because you are using
https://github.com/alliedmodders/hl2...m/isteamhttp.h

https://github.com/alliedmodders/hl2...mhtmlsurface.h
^^
This is the same as what you linked before
Quote:
Originally Posted by Fastmancz View Post
We are must use Steamworks SDK for opened custom website urls (I think). It's a very interesting: https://partner.steamgames.com/doc/a...eamHTMLSurface but I don't know how to apply it to Sourcemod.
__________________
Owner of Galyre
All my projects are public and can be found on my GitHub
KewaiiGamer is offline