13.03.2013, 19:42
Hey, i've made a little function for an RP server i've developing, which converts minutes into days, hours & minutes. My problem is that when the minute mark reaches 60+ with the convert minute function, it just carries on, I was wondering if I could stop that and reset it to 0 without disrupting the days & hours process.
Sorry, if that was hard to understand.
Sorry, if that was hard to understand.
Код:
stock ConvertTime(time) {
new String[300];
new day = time / 1440;
new hour = time / 60;
new minute = time;
format(String, sizeof String, "{FF0000}%d {FFFFFF}days, {FF0000}%d {FFFFFF}hours and {FF0000}%d {FFFFFF}minutes", day, hour, minute);
return String;
}


