secsToTimeString

I’m trying to make this command work:

if you type .mute it says that you are either not muted or that you are muted for X time.

handler->PSendSysMessage("You are muted for: %s", secsToTimeString(diff));

Gives: “You are muted for: /”

handler->PSendSysMessage("You are muted for: %s", secsToTimeString(diff, true));

Gives: “You are muted for: ?”

handler->PSendSysMessage("You are muted for: %d", diff);

Gives: “You are muted for: 10000” (<— right amount of seconds)

What am I doing wrong?

//EDIT: I just realized that I posted in the wrong section…

Why no put the date of mute expiration? also reason of mute.

Because the reason of mute works, and because the date of mute expiration is not really what I want.

Also

int32 diff = int32(unmutetime - time( NULL ));