SycroX Posted January 5, 2016 Share Posted January 5, 2016 سلام عليكم عايز اتعلم كيف احول من MilliSecond لي Mins فلمود يعني انا فلمود مسوي يجيب الوقت المتبقي علي ما يخلص الشي انا الحين المشكلة يجيب لي الوقت بل MilliSecond انا اباه بلدقائق كيف؟ Link to comment
ALw7sH Posted January 5, 2016 Share Posted January 5, 2016 function msToMin(ms) return ms*1000*60 end Link to comment
SycroX Posted January 5, 2016 Author Share Posted January 5, 2016 و كيف استعمل msToMin مثلا مثال الويكي function timerDetails() remaining, executesRemaining, totalExecutes = getTimerDetails(theTimer) -- Get the timers details if (remaining and executesRemaining and totalExecutes) then outputChatBox("Time remaining this second: "..remaining.." Executes remaining: "..executesRemaining.." Total executes: "..totalExecutes) else outputChatBox("Timer no longer exists") end end كيف استعمل الكود عليه Link to comment
shwaeki Posted January 5, 2016 Share Posted January 5, 2016 Timer = setTimer(function() end, 10*60000, 10) addCommandHandler("a", function () remaining = getTimerDetails(Timer) outputChatBox(msToMin(remaining).." Minutes",0,255,0) end ) function msToMin(ms) return math.floor(ms/60000) end Link to comment
SycroX Posted January 5, 2016 Author Share Posted January 5, 2016 طيب او اباها Hours اضرب في كم ؟ Link to comment
shwaeki Posted January 5, 2016 Share Posted January 5, 2016 https://wiki.multitheftauto.com/wiki/SecondsToTimeDesc Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now