dude how did u add that
|
Well heres the code that shows the amount of time left in the summoning interface.
The problem with this is that it shows the minutes and then all the seconds. I don't want it to show the seconds if its greater than 59 seconds. So it would be something like, 2.30. Which is the Minutes.Seconds.Code:getPA().sendFrame126(""+summonTime/60+"."+summonTime+"", 17025);
Bump.
Before it shows the time, format it.
In the summonTime method, add an if statement saying if it's larger than 60, divide it by 60. If not, then return as just seconds.
I'm not sure what you mean by that, but do something likeCode:I don't want it to show the seconds if its greater than 59 seconds.
if (seconds > 59) {
dowhatever
}
I set the time for each familiar like this "summontime = 1800"(Thats 1800 seconds). Then I do "summonTime/60" which gives me 30 minutes. But the way I want it to work is it will say, "X minutes. X Seconds" so for example "4(minutes).56(seconds)" then it will keep going down and then be "3(minutes).59(seconds)". Do you get that?
Yeah, I got it.
Do something like
I think that would workCode:if (summoningtime > 0) { if (summoningtime >= 60) { minutes = summoningtime / 60; }else{ minutes = 0; } seconds = summoningtime - (minutes * 60); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |