Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello is there any way to save date when player disconnect in format like 13/07/2014? Thanks
Posts: 584
Threads: 51
Joined: Jan 2014
Reputation:
0
Yes there is.
Use the TimeStampToDate include!
Posts: 1,018
Threads: 320
Joined: Jul 2010
I try it but it didn't work . Thanks
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Use Unix timestamps or a datetime field. I think it's fairly stupid to use a bloated Pawn function while all the functionality you could possibly ever need is built right into MySQL.
Posts: 1,018
Threads: 320
Joined: Jul 2010
can you maybe explain a little about datetime field can there put a format like 13/07/2014 or? I currently have unixtimestamp in column so it show me a date in format 2014-7-13 and then a time but I don't need that just date and if it possible in format above this text? Thanks
Posts: 1,018
Threads: 320
Joined: Jul 2010
I don't understand so much there. How that is look in gamemode or it should be in gamemode I try few times but with no succes? Thaks
Posts: 21
Threads: 3
Joined: Feb 2014
Reputation:
0
new Year, Month, Day;
getdate(Year, Month, Day);
new query[500],pNameg[24];
GetPlayerName(playerid,pNameg,sizeof(pNameg));
format(query,sizeof(query),"UPDATE `vartotojai` SET prisijungimas='%i-%i-%i' WHERE (`Vardas` = '%s')",Day,Month,Year,pNameg);
mysql_query(query);
Posts: 1,018
Threads: 320
Joined: Jul 2010
I try that but it doesn't work. Thanks. Anyone else?