18.02.2013, 19:37
Hello, i have problem with convert seconds.
This do not work, please help.
Код:
stock VipTime(Seconds)
{
new String[150];
new Days,Hours,Minutes;
Days = Seconds / 60 / 60 / 24;
Hours = Seconds - (Days * 60 * 60 * 24) / 60 / 60;
Minutes = Seconds - (Hours * 60 * 60) / 60;
Seconds = Seconds - (Minutes * 60);
format(String,150,"%d d, %d h, %d m i %d s",Days,Hours,Minutes,Seconds);
return String;
}

