SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 01/06/2013, 10:15 AM   #1
PapaSmerf
Little Clucker
 
Join Date: Jul 2011
Posts: 42
Reputation: 0
Default CTime plugin problem

I have problem with convert gettime to date. When i do this:

Code:
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:

Code:
30.05.113 18:58
The convertSecond look like this:
Code:
gettime()+60*60*24*30
How to fix it? Help me please.
PapaSmerf is offline   Reply With Quote
Old 01/06/2013, 12:20 PM   #2
PapaSmerf
Little Clucker
 
Join Date: Jul 2011
Posts: 42
Reputation: 0
Default Re: CTime plugin problem

anyone? pls ;/
PapaSmerf is offline   Reply With Quote
Old 01/06/2013, 12:23 PM   #3
Skimmer
Huge Clucker
 
Skimmer's Avatar
 
Join Date: Oct 2012
Location: Germany
Posts: 492
Reputation: 56
Default AW: CTime plugin problem

Where is the problem btw? Year? The complete date?
Skimmer is offline   Reply With Quote
Old 01/06/2013, 01:13 PM   #4
PapaSmerf
Little Clucker
 
Join Date: Jul 2011
Posts: 42
Reputation: 0
Default Re: CTime plugin problem

Yeah, the date should look like this:

Code:
30.06.2013 18:58
that showed the date of which will be for the monthh
PapaSmerf is offline   Reply With Quote
Old 02/06/2013, 12:46 PM   #5
PapaSmerf
Little Clucker
 
Join Date: Jul 2011
Posts: 42
Reputation: 0
Default Re: CTime plugin problem

I need this, help me. ;(
PapaSmerf is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] CTime Library RyDeR` Plugin Development 94 03/09/2018 05:29 AM
[FilterScript] sys_log (MySQL, CTime Library) Jason` Lançamentos/Releases 11 18/05/2013 03:50 PM
CTime problem? gabyk Scripting Help 3 12/05/2013 12:31 PM
CTime problem x2 gabyk Scripting Help 1 23/02/2013 03:38 PM
CTime problem gabyk Scripting Help 2 23/02/2013 01:23 PM


All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.