from 360000 to minutes
#1

Hi everyone,

I want to display the time till their payday in minutes when they do /stats...
How would i display a value, like timervalue[playerid] , this is my value, if it would hold 360000, and has to display 60 minutes...

i hope someone can help me with this,

thanks in advance!
Reply
#2

Use math?
pawn Код:
new timerminutes[playerid];
new timervalue[playerid];

in your timer:
timervalue[playerid]++;
if(timervalue[playerid] == 60)
{
timerminutes[playerid]=1;
timervalue[playerid]=0;
}
if(timerminutes[playerid] == 60)
{
//givepayday
}
//you can display something there
Reply
#3

i already have that, i meant just show it in a format, in my /stats..
and for that, i did use math, and i got the answer..

thanks anyways
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)