20.02.2009, 15:23
my bad, i forgot that my function first set ms, ss, mm, then hh and dd (so the final value of minutes in the example would be in fact, the days..)You have to create a dummy variable.
pawn Код:
new useless, minutes, seconds;
TimeConvert(FLTime_LosSantos, useless, useless, minutes, seconds, .method = tc_seconds);
Or, to avoid creating an extra unused variable (waste of memory), change the function header to:
pawn Код:
stock TimeConvert(time, &dd=0, &hh=0, &mm=0, &ss=0, &ms=0, tc_method:method=tc_milliseconds)
pawn Код:
new minutes, seconds;
TimeConvert(FLTime_LosSantos, _, _, minutes, seconds, .method = tc_seconds);

