time ban problem
#1

I try to make a message to dysplay the ban time left,

when I use command /ban

time = gettime() + (days*86400); //86400 I know this it means a day in unix

and when login

"Ban will expire in %d and %d hours",(time-gettime())/86400 , (time-/86400)-(time/86400)/24*24);
SendClientMessage(playerid, -1, string);

,(time-gettime())/86400 this is 2 days and is good, but last who should be hours is wrong 8 and should be 24 because I just banned me for 3 days
Reply


Messages In This Thread
time ban problem - by Mister0 - 09.12.2016, 19:26
Re: time ban problem - by Dayrion - 09.12.2016, 19:39
Re: time ban problem - by Logic_ - 10.12.2016, 03:25

Forum Jump:


Users browsing this thread: 1 Guest(s)