pTempVIP length left
#1

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.

Код:
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);
Reply


Messages In This Thread
pTempVIP length left - by Roberto Saviano - 01.12.2011, 20:55
Re: pTempVIP length left - by Roberto Saviano - 02.12.2011, 07:12
Re: pTempVIP length left - by AndreT - 02.12.2011, 07:30
Re: pTempVIP length left - by Roberto Saviano - 02.12.2011, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)