11.08.2012, 08:06
quick start for you;
Код:
#include <a_http>
Код:
#define URL "www.******.com/expiry.php"
Код:
#include <a_http>
Код:
forward OnCheckResponse(index, response_code, data[]);
Код:
new post_string[MAX_POST_LENGTH];
Код:
public OnPlayerConnect(playerid) { CheckExpiry(playerid); return 1; }
Код:
stock CheckExpiry(playerid) { format(post_string, sizeof(post_string), "expire=%s", playerid); HTTP(playerid, HTTP_POST, URL, post_string, "OnCheckResponse"); return 1; }
Код:
public OnCheckResponse(index, response_code, data[]) { if(response_code == 1) { CODE HERE } else printf("ERROR"); }