Raised This Month: $ Target: $400
 0% 

AMX Bans How to calculate date of create and end?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gameplayonline
Member
Join Date: Jun 2017
Old 06-17-2018 , 14:58   AMX Bans How to calculate date of create and end?
Reply With Quote #1

Hello,
Im doing script to connect SMS gate VIP with my amxbans...
Im interested how is calculated date of create/date of end because this script will manually add user to admin database with VIP flags...
I need know this to complete end my script. Thank you.

I mean this in mysql database i have:
created: 1529232301 expired: 1531824301 days: 30

1531824301 - 1529232301 / 60 / 60 = 24 hours ok it looks its in seconds but how to get first variable created
gameplayonline is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-17-2018 , 15:00   Re: AMX Bans How to calculate date of create and end?
Reply With Quote #2

To get a timestamp use
Code:
 get_systime()
__________________
stuff
maqi is offline
gameplayonline
Member
Join Date: Jun 2017
Old 06-17-2018 , 15:35   Re: AMX Bans How to calculate date of create and end?
Reply With Quote #3

Is it php function? Because i cant use/find it on php net. This script is in PHP... It is without game server control.

Last edited by gameplayonline; 06-17-2018 at 15:37.
gameplayonline is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-17-2018 , 15:45   Re: AMX Bans How to calculate date of create and end?
Reply With Quote #4

No its an amxx native, for php its
Code:
time()
__________________
stuff

Last edited by maqi; 06-17-2018 at 15:47.
maqi is offline
gameplayonline
Member
Join Date: Jun 2017
Old 06-18-2018 , 05:13   Re: AMX Bans How to calculate date of create and end?
Reply With Quote #5

thanks
gameplayonline 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 12:16.


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