[HELP] last activity
#9

first is this

pawn Код:
new string[128],day,month,year;
    getdate(day,month,year);
    format(string,sizeof(string),"%d/%d/%d",day,month,year);
and here is saving

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
Reply


Messages In This Thread
[HELP] last activity - by Luca12 - 02.04.2014, 20:57
Re: [HELP] last activity - by Luca12 - 02.04.2014, 21:14
Re: [HELP] last activity - by AhmedMohamed - 02.04.2014, 21:23
Re: [HELP] last activity - by zT KiNgKoNg - 02.04.2014, 21:24
Re: [HELP] last activity - by Luca12 - 02.04.2014, 21:28
Re: [HELP] last activity - by EiresJason - 02.04.2014, 21:31
Re: [HELP] last activity - by Luca12 - 02.04.2014, 21:33
Re: [HELP] last activity - by EiresJason - 02.04.2014, 21:36
Re: [HELP] last activity - by Luca12 - 02.04.2014, 21:45
Re: [HELP] last activity - by EiresJason - 02.04.2014, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)