Timestamp being weird
#1

pawn Код:
new Query[128],
        Timestamp,
        Day,
        Month,
        Year,
        Hour,
        Minute,
        Second;
       
    TimestampToDate(Timestamp, Year, Month, Day, Hour, Minute, Second, GMT_H, GMT_M);
    mysql_format(szCurrent, Query, sizeof(Query), "UPDATE `accounts` SET `LastOnline` = '%i-%i-%i at %i:%i:%i' WHERE `Username` = '%e' LIMIT 1", Day, Month, Year, Hour, Minute, Second, Name[playerid]);
    mysql_tquery(szCurrent, Query, "");
What's wrong with that? I'm having troubles

Basically, the trouble is that the query isnt sending the correct information:
pawn Код:
-1-1-1970 at 0:1:0
Reply


Messages In This Thread
Timestamp being weird - by sammp - 01.07.2014, 00:26
Re: Timestamp being weird - by BroZeus - 01.07.2014, 05:25
Re: Timestamp being weird - by Vince - 01.07.2014, 06:45
Re: Timestamp being weird - by sammp - 01.07.2014, 10:51

Forum Jump:


Users browsing this thread: 3 Guest(s)