[HELP] please help get date
#7

I was go somewhere in d/d/d format I was move // and know in mysql have 201443 it is year-month-day but how can I get it like d/d/d if I set in format // it will be 168.78333333

pawn Код:
format(str,512,"%d%d%d",dan,mjesec,godina);
    PlayerInfo[playerid][ZadnjaAktivnost] = str; know like that is 201443

if I set

format(str,512,"%d/%d/%d",dan,mjesec,godina);
    PlayerInfo[playerid][ZadnjaAktivnost] = str; it will be 168,7833333

and here is the query in onplayerdisconnect

mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `LastActivity` = %s, WHERE `ID` = '%d'",
    PlayerInfo[playerid][LastActivity],PlayerInfo[playerid][ID]);
Reply


Messages In This Thread
[HELP] please help get date - by Luca12 - 03.04.2014, 15:39
Re: [HELP] please help get date - by ]Rafaellos[ - 03.04.2014, 15:47
Re: [HELP] please help get date - by Luca12 - 03.04.2014, 15:49
Re: [HELP] please help get date - by ]Rafaellos[ - 03.04.2014, 15:53
Re: [HELP] please help get date - by Luca12 - 03.04.2014, 15:56
Re: [HELP] please help get date - by Jstylezzz - 03.04.2014, 18:12
Re: [HELP] please help get date - by Luca12 - 03.04.2014, 18:14
Re: [HELP] please help get date - by Jstylezzz - 03.04.2014, 18:28
Re: [HELP] please help get date - by Luca12 - 03.04.2014, 18:32
Re: [HELP] please help get date - by Luca12 - 04.04.2014, 08:26

Forum Jump:


Users browsing this thread: 1 Guest(s)