07.12.2010, 01:34
i got the last visit date stored in this var
pawn Код:
HouseInfo[id][hLastVisitD]
HouseInfo[id][hLastVisitD]
if(HouseInfo[id][hLastVisitD] != 0)
{
if(HouseInfo[id][hLastVisitD] + (86000 * 2) <= gettime())
{
printf("Last Visit Date Test");
}
}
#define WEEK ( 86000 * 7 )
if(HouseInfo[id][hLastVisitD] != 0)
{
if(HouseInfo[id][hLastVisitD] + (WEEK * 2) <= gettime())
{
printf("Last Visit Date Test");
}
}