αвυ-wαleed Posted October 4, 2013 Share Posted October 4, 2013 طلبين: ابغى اعرف كم دقيقة setTimer(createBag,90000,1) الطلب الثاني ابغى كود اكتب كلمة في اف 8 اعرف كم باقي من الوقت Link to comment
TAPL Posted October 4, 2013 Share Posted October 4, 2013 1- ثانية 90 يعني دقيقة و نص 2- addCommandHandler getTimerDetails Link to comment
αвυ-wαleed Posted October 4, 2013 Author Share Posted October 4, 2013 طيب خمس دقايق =300000 ؟؟؟ Link to comment
Quited Posted October 4, 2013 Share Posted October 4, 2013 (edited) يب هي وحدة بالوظايف مدري وشسمها بس اللي اعرفه اذا تبي تحول بين الثانية والوحدة اللي معرف اسسمها مثلا 1 ثانية = تصير 1000 و 90 = 90000 يعني تزود 3 اصفار اذا تبي تحول Edited October 4, 2013 by Guest Link to comment
Quited Posted October 4, 2013 Share Posted October 4, 2013 5 دقايق = 300 ثانية = 300000 بالوحدة حقت الوظايف ض2 Link to comment
αвυ-wαleed Posted October 4, 2013 Author Share Posted October 4, 2013 طيب ابغى الكود جاهز حق معرفة كم تبقى على الوقت Link to comment
TAPL Posted October 4, 2013 Share Posted October 4, 2013 هنا ما نسوي لك الكود انت تسويه بنفسك و المثال موجود بالويكي Link to comment
αвυ-wαleed Posted October 4, 2013 Author Share Posted October 4, 2013 ممكن تطلعها بدلي من الويكي وبشووف كيف انت جبتها واش اخذت وانا بقلدك في أي كود ثاني وانا تراني اترجم الصفحات في كروم يعني اسهل لي Link to comment
TAPL Posted October 4, 2013 Share Posted October 4, 2013 theTimer = setTimer(function() end, 1000, 10) -- A timer that does nothing. 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 addCommandHandler("timerdetails", timerDetails) Link to comment
αвυ-wαleed Posted October 4, 2013 Author Share Posted October 4, 2013 ياتابل شكلك مافهمتني طيب اطلع الوقت Link to comment
فاّرس Posted October 4, 2013 Share Posted October 4, 2013 اي وقت؟ انت تبي كم بقي على وقت التايمر وعطاك Link to comment
αвυ-wαleed Posted October 4, 2013 Author Share Posted October 4, 2013 انا ابغى اكتب في اف 8 كلمة يطلع لي كم باقي على وقت الشنطة الشطة تجي كل 5 دقايق 300000 Link to comment
فاّرس Posted October 4, 2013 Share Posted October 4, 2013 طيب هو عطاك الكود الكود يجيب لك كم بقي من الوقت -.- Link to comment
αвυ-wαleed Posted October 4, 2013 Author Share Posted October 4, 2013 طيب سويت ملف جديد لوا وحطيته فيه واضفته في الميتا ولا اشتغل Link to comment
فاّرس Posted October 4, 2013 Share Posted October 4, 2013 اظن انك ما حطيت التايمر حقك ذذ شوف ذا شرح , timer = setTimer(function() outputChatBox('The End.') end,10000,1 ) addCommandHandler('Det', function() -- امر من اف8 # if isTimer(timer) then -- تحقق ان التايمر موجود # local r,e,t = getTimerDetails(timer) -- نجيب الوقت للتايمر # outputChatBox('remaining : '..r..' Executes remaining : '..e..' Total executes : '..t) -- نطلع الوقت بالشات # end -- اغلاق # end -- اغلاق # ) -- اغلاق # 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