from 360000 to minutes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: from 360000 to minutes (
/showthread.php?tid=361604)
from 360000 to minutes -
Jstylezzz - 21.07.2012
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!
Re: from 360000 to minutes -
EV007 - 21.07.2012
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
Re: from 360000 to minutes -
Jstylezzz - 21.07.2012
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