Raised This Month: $ Target: $400
 0% 

Stock problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 08-22-2013 , 14:01   Re: Stock problem
Reply With Quote #5

PHP Code:
stock set_user_age(idage_yearage_monthage_day)
{
    new 
a[5], b[3], c[3], today_yeartoday_monthtoday_day
    get_time
("%Y"a 4)
    
get_time("%m"b2)
    
get_time("%d"c2)
    
today_year str_to_num(a)
    
today_month str_to_num(b)
    
today_day str_to_num(c)
    if(
age_year >= today_year) return
    
age[id] = today_year age_year
    age
[id] = today_year age_year
    
if(today_year == age_year && today_month == age_month && today_day == age_dayin_birthday[id] = true

should be fine.

Last edited by .Dare Devil.; 08-22-2013 at 14:03.
.Dare Devil. is offline
 



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 18:57.


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