how to save date in variable and check getdate(year, month, day); if(varible < day)
#2

Try the code below, and edit it to your likings.

pawn Код:
new date[4];

// Put this snippet where you want it.
new year, month, day;
getdate(year, month, day);
date[0] = year;
date[1] = month;
date[2] = day;

stock PayDay() // For example.
{
    new year, month, day;
    getdate(year, month, day);
    if(date[2] < day) // If the day set in 'GetDate' is lower than the current day, let's say date[2] was 26, and 'day' was 30.
    {
        // Code here.
    }
    return 1;
}
Reply


Messages In This Thread
how to save date in variable and check getdate(year, month, day); if(varible < day) - by jame42 - 23.03.2011, 04:42
Re: how to save date in variable and check getdate(year, month, day); if(varible < day) - by pawn_ - 23.03.2011, 05:26

Forum Jump:


Users browsing this thread: 1 Guest(s)