Gamestudio Links
Zorro Links
Newest Posts
oldschool fps project
by 3run
56 minutes 42 seconds ago
[ALL STYLES] 2D Videogame Artist (pixel, vector, painted)
by DesixStudios
Today at 14:45
Easy question
by jcl
Today at 13:47
Cheap bouncing shells/gibs
by 3run
Today at 00:36
WED doesnt show all entity actions in the behavior list
by rayp
Yesterday at 22:31
Fullscreen Antialiasing plugin
by Iglarion
Yesterday at 22:29
Date field in dataset functions
by jcl
Yesterday at 10:55
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
13 registered (Hredot, jumpman, 3run, Ch40zzC0d3r, Kartoffel, AndrewAMD, MasterQ32, kujo, FLD, 1 invisible), 462 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
cme, pataba, byano, Tuguldur717, jmgrnt7
17833 Registered Users
Topic Options
Rate This Topic
#467542 - 08/11/17 00:51 http_post undeclared identifier
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 300
hello,

I'm trying the code from the manual, but I get the error
:http_post undeclared identifier ... E355

Code:
#include <acknex.h>
#include <default.c>
#include <acknet.h>
STRING* ip_str = "";

// start the script "ip.php" on a remote server, and return the caller's IP address
function main()
{
   var id = http_post("http://underhut.de/postEchtzeit/index.php",NULL);
   while (!http_status(id)) 
     wait(1);//wait for the server to reply
   if (http_status(id) == 1) { //transfer successful?
     http_result(id,ip_str);   //get the replied IP
     printf(_chr(ip_str));
  } else
     error("Error during transfer!");
  http_free(id); //always cleanup the httpid!
  sys_exit(NULL);
}


the index.php is:
Php Code:

<?php $ip ="$REMOTE_ADDR";echo "Your IP: $ip";?>



Edited by CocaCola (08/11/17 00:53)

Top
#467543 - 08/11/17 08:59 Re: http_post undeclared identifier [Re: CocaCola]
txesmi Offline
Serious User

Registered: 06/13/07
Posts: 1054
Loc: Hiporope and its pain
Hi,
the http call is made by 'http_sendpost' instead of 'http_post'. It was wrong in previous manual versions but it is already corrected in the last version.

Salud!

Top
#467544 - 08/11/17 11:25 Re: http_post undeclared identifier [Re: txesmi]
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 300
thnk you! where can I download the new version as help file, and can i update sed for infos?

I tryed 'http_sendpost' and get error http is only for pro version, but in the manual are the blue square icons for
Version:
P LC

how to read then?

Top
#467553 - 08/11/17 23:00 Re: http_post undeclared identifier [Re: CocaCola]
Uhrwerk Offline
Expert

Registered: 01/08/02
Posts: 4218
Loc: Germany / Essen
P LC means that the feature is Pro Version exclusive and only supported in Lite-C, not in C-Script.
_________________________
Always learn from history, to be sure you make the same mistakes again...

Top
#467554 - 08/11/17 23:47 Re: http_post undeclared identifier [Re: Uhrwerk]
CocaCola Offline
Senior Member

Registered: 03/04/14
Posts: 300
Thank You Uhrwerk

Top


Moderator:  old_bill 

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) 3dgamestudio.net