Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 13,353 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to make the gshttp.dll work with lite-c ? #317777
04/02/10 14:32
04/02/10 14:32
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
How can I make the gshttp.dll work with lite-c?

I defined the dllfunction's but it gives an error when I use HTTP_Get. It says 'Can not convert 'ARRAY' to 'FIXED';

Here is my code;

Code:
dllfunction HTTP_Create(); // Create HTTP Client  

dllfunction HTTP_Get(url_str); // HTTP GET the URL in url_str
dllfunction HTTP_Post(url_str,data_str); // HTTP POST the URL in url_str and pass data_str as the post data

dllfunction HTTP_IsWorking(); // Check to see if HTTP_Get() or HTTP_Post() are currently working

dllfunction HTTP_Results(results_str); // Fill results_str with the results from HTTP_Get() or HTTP_Post(). If there was an HTTP error, fills results_str with error number.
dllfunction HTTP_SaveToFile(filename_str); 

dllfunction HTTP_Free(); // Free HTTP Client

var dll_handle;

STRING* ResultString = "#100";

function get_servers()
{
	str_cpy(ResultString,"");
	
	if (HTTP_Create()==0) 
	{ 
		HTTP_Get("http://localhost/index.php");
		
		while(HTTP_IsWorking()==1) 
		{
	   	wait(1);
	  	}
	  	
	  	HTTP_Results(ResultString);
	  	
	  	HTTP_Free();
  	}
}



Re: How to make the gshttp.dll work with lite-c ? [Re: Toon] #317996
04/04/10 06:08
04/04/10 06:08
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
search: http://www.opserver.de/ubb7/ubbthreads.p...1&Main=3793

To all functions you have to pass a var as ID. Look into this thread above...

Last edited by GorNaKosh; 04/04/10 06:16.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1