07.09.2014, 13:45
The following is called when the player logins in via a registration system:
However, it is not working. I view my player file, and it says that my VIP will expire (Day) 7 (Month) 9. And via the command /vipexpdate, it says my VIP will expire on 9/7.
So I'm not sure whats wrong, if Day = VipExpirationDate and Month = VipExpirationMonth then take the VIP away, haha. But, even when I do a debug test, which is printing something when the player logs on. It didn't print anything to the console.
Yes my VIP level is above or equal to one.
REP+
pawn Код:
if(strlen(Player[playerid][VipExpirationDate]) == Day && Player[playerid][VipExpirationMonth] == Month && Player[playerid][VipLevel] >= 1)
{
format(string, sizeof(string), "Your VIP subscription (level %d) has expired.", Player[playerid][VipLevel]);
SendClientMessage(playerid, YELLOW, string);
Player[playerid][VipLevel] = 0;
Player[playerid][VipExpirationDate] = 0;
Player[playerid][VipExpirationMonth] = 0;
format(string, sizeof(string), "%s's VIP subscription (level %d) has expired.", GetNameWithUnderscore(playerid), Player[playerid][VipLevel]);
SendToAdmins(ADMINORANGE, string, 0);
}
So I'm not sure whats wrong, if Day = VipExpirationDate and Month = VipExpirationMonth then take the VIP away, haha. But, even when I do a debug test, which is printing something when the player logs on. It didn't print anything to the console.
Yes my VIP level is above or equal to one.
REP+