02.04.2014, 21:45
first is this
and here is saving
pawn Код:
new string[128],day,month,year;
getdate(day,month,year);
format(string,sizeof(string),"%d/%d/%d",day,month,year);
pawn Код:
mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `LastActivity` = %s WHERE WHERE `ID` = '%d'",
and heere I try set string beacuse from string is getting date and I try this PlayerInfo[playerid][LastActivity],PlayerInfo[playerid][ID]
and in database it give me this when I disconnect from server
251.750000000000000000 instead of
2/4/2014