I made it:
PHP Code:
public void OnMapStart()
{
poll();
}
void poll()
{
System2HTTPRequest httpRequest = new System2HTTPRequest(OnHTTPSRequestEnd, "https://lugui.in/fdlapi/Debug.php");
httpRequest.GET();
delete httpRequest;
}
public void OnHTTPSRequestEnd(bool success, const char[] error, System2HTTPRequest request, System2HTTPResponse response, HTTPRequestMethod method)
{
if(success) {
char res[30];
response.GetContent(res, response.ContentLength + 1);
LogToFile("addons/sourcemod/logs/FDMLog.log", "Received: %s", res);
}
poll();
}
The simplest script possible, and it still crashing the server, Am I deleting it properly?