Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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