Raised This Month: $51 Target: $400
 12% 

Remove after specific time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 10-27-2012 , 12:39   Remove after specific time
Reply With Quote #1

How can I check the current date and remove it after 30 days?

I've searched but didn't find any information.

Except for Unixtotime
Pewdiepie is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 10-27-2012 , 13:10   Re: Remove after specific time
Reply With Quote #2

PHP Code:
#define DAY 30
#define MONTH 10
#define YEAR 2012

    
new iDayiMonthiYear
    date
(iYeariMonthiDay)
    
    if(
iDay == DAY && iMonth == MONTH && iYear == YEAR)
    {
                  
//your wanted date
    

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 10-27-2012 , 13:16   Re: Remove after specific time
Reply With Quote #3

Example of date:

PHP Code:
new szDate[32];
get_date("%m/%d/%Y"szDate31);

client_print(0print_chat"Today is: %s"szDate); 

Last edited by Torge; 10-27-2012 at 15:58. Reason: ups xD
Torge is offline
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 10-27-2012 , 13:18   Re: Remove after specific time
Reply With Quote #4

How would I check the current date and if I found it + 30?
Pewdiepie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-27-2012 , 14:12   Re: Remove after specific time
Reply With Quote #5

Quote:
Originally Posted by Pewdiepie View Post
How would I check the current date and if I found it + 30?
What? You make no sense. Explain what you are trying to do.
__________________
fysiks is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 10-27-2012 , 14:28   Re: Remove after specific time
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
What? You make no sense. Explain what you are trying to do.
I believe he mean if the specific month is reached, how to add another +30 days.
Torge is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-27-2012 , 14:29   Re: Remove after specific time
Reply With Quote #7

Quote:
Originally Posted by Torge View Post
I believe he mean if the specific month is reached, how to add another +30 days.
That still doesn't make sense without context.
__________________
fysiks is offline
Pewdiepie
Senior Member
Join Date: Oct 2012
Old 10-27-2012 , 14:49   Re: Remove after specific time
Reply With Quote #8

Actually what i meant is, i want to make an automaticlly remover. So for example if someone purchases something today it would be removed after 30 days.
Pewdiepie is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 10-27-2012 , 14:51   Re: Remove after specific time
Reply With Quote #9

Quote:
Originally Posted by Torge View Post
Example of date:

PHP Code:
new szDate[32];
get_date("%m/%d/%Y");

client_print(0print_chat"Today is: %s"szDate); 
You are blind? Check the variable!
__________________
kiki33hun is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 10-27-2012 , 15:59   Re: Remove after specific time
Reply With Quote #10

Quote:
Originally Posted by kiki33hun View Post
You are blind? Check the variable!
Nope, small typing error
Torge is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 09:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode