confuse about system

Started by Becker, Jan 18, 2017, 02:40 PM

Previous topic - Next topic

Becker

hello guys, i do have a question about expiry system i mean can you tell me how can i set expiry date system like for cars.. auto delete car owner, manymore.. and can you tell me please how can i share my cars with two peoples...
so please help me!
thank you..

KAKAN

use time() function.
The function returns the current time in seconds.
So, for example, you need a car which will expire in one day. The code should be:-
local expire = time()+( 24*60*60 );
--check this somewhere else:-
if( expire - time() > 0 ){
//Its not expired yet.
}
else{
//Its expired.
}
Hope you get it :)
oh no