Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 1,390 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
http_post - undeclared identifier #333477
07/16/10 17:53
07/16/10 17:53
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline OP
Member
Bone  Offline OP
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
Hey,

I want to get information from a php script so I had
a look at the manual.

I found the http_post function with an example.

Thatīs my code

Code:
#include <acknex.h>
#include <default.c>
#include <acknet.h>


STRING* timestamp;


PANEL* information =
{
  digits(35, 10, %s, *, 1, timestamp);
  
  
  
  flags = SHOW;
}

function main()
{

	
	var id = http_post("localhost/browser_game/time.php",NULL);
   	while (!http_status(id)) 
     		wait(1);//wait for the server to reply
   		if (http_status(id) == 1) { //transfer successful?
   		  http_result(id,timestamp);   //get the replied IP
	
			}

 		http_free(id); //always cleanup the httpid!
		

}



I use the free Version.
Isnīt it possible to do that with the free edition?

I get the error http_post - undeclared identifier.

In the SED http_post is write in red like a function

Hope you can help me

Re: http_post - undeclared identifier [Re: Bone] #333503
07/16/10 20:16
07/16/10 20:16
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
The "P" by "Version:" in the manual mean that this only work with the pro version. And then make sure you loaded the acknet.dll


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

Gamestudio download | chip programmers | 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