23.03.2011, 04:42
how to save date in variable and check getdate(year, month, day); if(varible < day)
sorry for my english
sorry for my english
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;
}