30.11.2014, 18:27
no, you don't have to format it any more cuz it's already been formatted by getdate.
also, "UltraScripter" made a small mistake in the code he posted
that's just wrong.
the prototype of getdate is as follows
his code would produce something like this:
here, "day" is actually the year, "month" the month (got that right ^^)
but "year" the day
what you want is to add 5 days to "days" right?
something like this
it'll print
Date: 35/11/2014
also, "UltraScripter" made a small mistake in the code he posted
Quote:
Originally Posted by UltraScripter
pawn Код:
|
the prototype of getdate is as follows
pawn Код:
unsigned int getdate(unsigned int year, unsigned int month, unsigned int day);
//so its actually: year, month, day
pawn Код:
2014/11/30
but "year" the day
what you want is to add 5 days to "days" right?
something like this
pawn Код:
new d[3];
getdate(d[0], d[1], d[2]);
printf("Date: %d/%d/%d",d[2]+5, d[1], d[0]);// +5 for days
Date: 35/11/2014