Making an Expiry Date for VIP system
#4

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");
}
Reply


Messages In This Thread
Making an Expiry Date for VIP system - by BlackID - 11.08.2012, 04:37
Re: Making an Expiry Date for VIP system - by BlackID - 11.08.2012, 07:53
Re: Making an Expiry Date for VIP system - by kickerbat - 11.08.2012, 07:55
Re: Making an Expiry Date for VIP system - by kickerbat - 11.08.2012, 08:06
AW: Making an Expiry Date for VIP system - by Tigerkiller - 11.08.2012, 08:17
Re: Making an Expiry Date for VIP system - by BlackID - 11.08.2012, 12:39
AW: Re: Making an Expiry Date for VIP system - by Tigerkiller - 11.08.2012, 18:30

Forum Jump:


Users browsing this thread: 2 Guest(s)