CTime plugin problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CTime plugin problem (
/showthread.php?tid=441041)
CTime plugin problem -
PapaSmerf - 01.06.2013
I have problem with convert gettime to date. When i do this:
Код:
new tm<tmTime>;
gmtime(Time:convertSecond, tmTime);
format(str, sizeof(str), "%02d.%02d.%d %02d:%02d", tmTime[tm_mday], tmTime[tm_mon], tmTime[tm_year], tmTime[tm_hour], tmTime[tm_min]);
printf(str);
return this:
The convertSecond look like this:
Код:
gettime()+60*60*24*30
How to fix it? Help me please.
Re: CTime plugin problem -
PapaSmerf - 01.06.2013
anyone? pls ;/
AW: CTime plugin problem -
Skimmer - 01.06.2013
Where is the problem btw? Year? The complete date?
Re: CTime plugin problem -
PapaSmerf - 01.06.2013
Yeah, the date should look like this:
that showed the date of which will be for the monthh
Re: CTime plugin problem -
PapaSmerf - 02.06.2013
I need this, help me. ;(