13.03.2013, 21:01
Quote:
I'm not sure. My Div Function is good, use it. It will return you how many times is b in a, without decimal places.
|
pawn Код:
new temp = time % (24 * 60);
new days = (time - temp) / (24 * 60);
new minutes = temp % 60;
new hours = (temp - minutes) / 60;
Код:
time 2000 temp = 2000 % 1440 = 560 days = (2000 - 560) / (24 * 60) = 1440 / 1440 = 1 minutes = 560 % 60 = 20 hours = (560 - 20) / 60 = 540 / 60 = 9
Do not change the order of the variables. That's important.