Timestamp problems [REP+]
#7

You don't need this in this case ( PInfo[playerid][pLastLogin] )

next

use sscanf to separate and compare day

pawn Код:
sscanf(tmp,"s[15]i{i}s[9]",lastMonth,lastDay,lastTime);
getdate(...);
pawn Код:
if(CurrentDay == lastDay)
format(str,sizeof(str),"Welcome blabla on Today, at %s",lastTime);
else
format(str,sizeof(str),"Welcome blabla on %s %d, %d at %s",lastMonth,lastDay,year_from_getdate,lastTime);

SendClientMessage(...);
you can compare month names too
Reply


Messages In This Thread
Timestamp problems [REP+] - by Wizzy951 - 28.11.2013, 01:07
Re: Timestamp problems [REP+] - by Wizzy951 - 28.11.2013, 18:49
Re: Timestamp problems [REP+] - by iJumbo - 28.11.2013, 19:24
Re: Timestamp problems [REP+] - by Wizzy951 - 28.11.2013, 22:50
Re: Timestamp problems [REP+] - by Jefff - 28.11.2013, 22:57
Re: Timestamp problems [REP+] - by Wizzy951 - 29.11.2013, 00:14
Re: Timestamp problems [REP+] - by Jefff - 29.11.2013, 01:13

Forum Jump:


Users browsing this thread: 2 Guest(s)