01.12.2011, 20:55
Hello, i am currently trying to get the /stats command to show how many days, hours, minutes and seconds you got left of your membership, please be aware of that when you input pTempVIP = 3600 it is seconds.
This is how it looks alike, however it returns the seconds you got straight away to the ''days'' instead of the days, and doesnt ends up with anything into the remaining spots at all.
This is how it looks alike, however it returns the seconds you got straight away to the ''days'' instead of the days, and doesnt ends up with anything into the remaining spots at all.
Код:
format(coordsstring, sizeof(coordsstring), "VIP time left: %d days %d hours %d minutes %d seconds.", ((PlayerInfo[targetid][pTempVIP]/3600)/24,PlayerInfo[targetid][pTempVIP]/60,PlayerInfo[targetid][pTempVIP]/3600,PlayerInfo[targetid][pTempVIP])); SendClientMessage(playerid, COLOR_GRAD1, coordsstring);