09.12.2016, 19:26
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
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