Date+time+MySQL
#5

pawn Code:
cache_get_field_content(0, "Lastlogged", str),      PInfo[playerid][pLastLogin]] = strval(str);
As for this part, have you tried loading it as a string?

If you would like to use the date function, you will need to save it using a unix timestamp with gettime()
Then when you want to show it to a player you would send it like this:
pawn Code:
format(string, sizeof(string), "You last logged-in on: %s", date(PInfo[playerid][pLastLogin], 2));
SendClientMessage(playerid, -1, string);
Reply


Messages In This Thread
Date+time+MySQL - by x96664 - 10.12.2013, 15:43
Re: Date+time+MySQL - by x96664 - 11.12.2013, 22:08
Re: Date+time+MySQL - by Tayab - 11.12.2013, 22:24
Re: Date+time+MySQL - by x96664 - 11.12.2013, 23:38
Re: Date+time+MySQL - by s0nic - 12.12.2013, 05:19
Re: Date+time+MySQL - by x96664 - 12.12.2013, 13:25
Re: Date+time+MySQL - by x96664 - 12.12.2013, 17:48
Re: Date+time+MySQL - by x96664 - 13.12.2013, 15:16
Re: Date+time+MySQL - by s0nic - 14.12.2013, 05:01
Re: Date+time+MySQL - by RajatPawar - 14.12.2013, 06:39

Forum Jump:


Users browsing this thread: 3 Guest(s)