How can ?
#1

How can i make a system , when you have a driving license , license expire in 21 days (3week)
i try
create at pInfo pCarLicTime , when player take a driving license i set PlayerInfo[playerid][pCarLicTime] = 1814400; and at /licenses i try
Код:
if(PlayerInfo[playerid][pCarLicTime] == 0)
		        {
		            SendClientMessage(playerid, COLOR_GREY, "Drivers License: Not passed");
		        }
		        else
		        {
		        new timelicd = PlayerInfo[playerid][pCarLicTime] /60/60/24 ;
		        new timelico = PlayerInfo[playerid][pCarLicTime] /60/60 ;
		        new timelicm = PlayerInfo[playerid][pCarLicTime] /60 ;
		            format(string, sizeof(string), "Drivers License Passed for: %d days or %d hours or %d minutes!.", timelicd,timelico,timelicm);
              		SendClientMessage(playerid, COLOR_GREY, string);
		        }
This is ok but how can i create timer for this? but driving license is on 21 days ( 1814400 seconds)
Please help me
Reply


Messages In This Thread
How can ? - by zyghy - 16.06.2012, 19:19
Re: How can ? - by LetsOWN[PL] - 16.06.2012, 19:30
Re: How can ? - by zyghy - 16.06.2012, 20:08
Re: How can ? - by LetsOWN[PL] - 16.06.2012, 20:09
Re: How can ? - by zyghy - 16.06.2012, 20:12
Re: How can ? - by zyghy - 17.06.2012, 21:10
Re: How can ? - by zyghy - 03.07.2012, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)