25.04.2014, 07:45
Have you tried my solution?
If we assume your date string is in the variable DateString, you can now just add the comma like this:
pawn Код:
stock AddCommaAfterMonth(DateString[]) {
new Day, Month[3], Year;
if(sscanf(DateString, "dsd", Day, Month, Year)) {
print("Comma could not be added to the Date String (Reason: string not in the right format)");
}
else {
format(DateString, sizeof(DateString), "%d %s, %d", Day, Month, Year);
}
return DateString;
}
pawn Код:
DateString = AddCommaAfterMonth(DateString);