timestamp. remaining days.
#1

I have create a temporary VIP system. But I want to create a command that shows the number of days left in vip expiry.
I did " gettime() + 86400 " = 1 month

Here's the command

pawn Код:
COMMAND:viptime(playerid, params[])
{
    new diff_secs = ( GetPVarInt(playerid, "VIPTime") - gettime() );
    new remain_days = floatround( diff_secs / 60 * 60 * 24);
   
    new estring[128];
    format(estring, 128, "%d days remaining in your VIP Expiry.", remain_days);
    SendClientMessage(playerid, -1, estring);
    return 1;
}
this command need some fixes to get the exact days left in vip expiry.
Can you help ?
Reply


Messages In This Thread
timestamp. remaining days. - by Champ - 02.07.2014, 14:23
Re: timestamp. remaining days. - by sammp - 02.07.2014, 15:23
Re: timestamp. remaining days. - by BroZeus - 02.07.2014, 15:29
Re: timestamp. remaining days. - by Champ - 02.07.2014, 16:14
AW: Re: timestamp. remaining days. - by Nero_3D - 02.07.2014, 17:13
Re: timestamp. remaining days. - by Champ - 02.07.2014, 18:00
AW: Re: timestamp. remaining days. - by Nero_3D - 02.07.2014, 21:19
Re: timestamp. remaining days. - by Champ - 03.07.2014, 07:09

Forum Jump:


Users browsing this thread: 1 Guest(s)