SA-MP Forums Archive
How to fix time - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to fix time (/showthread.php?tid=533990)



How to fix time - TheNerka - 27.08.2014

Hello how to fix time? Im buy Admin, and scripted admin time 43200 minutes. im loged to server got this:
Admin left time: 29 days, 719 hour, 43197 min
I want this: Admin left time: 29 days, 23 hour, 59 min

My code:

Код:
	new minute = PlayerData[playerid][AdminTime];
	new hour = PlayerData[playerid][AdminTime] / 60;
	new day = hour / 24;



AW: How to fix time - Nero_3D - 27.08.2014

pawn Код:
new minute = PlayerData[playerid][AdminTime];
new hour = minute / 60;
new day = hour / 24;

minute %= 60;
hour %= 24;



Re: How to fix time - TakeiT - 27.08.2014

I know this doesnt answer your question, but you defo dont want to be selling admin positions.


Re: How to fix time - TheNerka - 27.08.2014

Thanks