Jump to content

مطلوووب كود


Recommended Posts

يب هي وحدة بالوظايف مدري وشسمها

بس اللي اعرفه

اذا تبي تحول بين الثانية والوحدة اللي معرف اسسمها

مثلا

1 ثانية

=

تصير

1000

و

90

=

90000

يعني تزود 3 اصفار اذا تبي تحول

Edited by Guest
Link to comment
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

اظن انك ما حطيت التايمر حقك ذذ

شوف ذا شرح ,

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...