05.08.2016, 07:20
Hello SAMP'ers, so I've made a command, it's basic and I made it to know how gettime works, and to make VIP system in the future.
So, I've made this command, it's supposed to return "one month", not 46 years -.-, Why does it return 46 years? help Please!
Note: 2592000 = one month
So, I've made this command, it's supposed to return "one month", not 46 years -.-, Why does it return 46 years? help Please!
Note: 2592000 = one month
PHP код:
CMD:expire(playerid, params[])
{
new string[128];
pInfo[playerid][VIPExpire] = gettime()+2592000;
format(string, sizeof(string), ""COL_GRAY"V.I.P Expiry: "COL_WHITE"%s", timec(pInfo[playerid][VIPExpire]-gettime()));
SendServerMSG(playerid, string);
return 1;
}