Jump to content

سؤال


Recommended Posts

Posted

احد يعرف كيف استخدم ذا الشيء

function guiSetDelay(gui, delay)
    assert(getElementType(gui):find('gui-'), 'bad argument guiSetDelay @1 gui-element expected got '..(isElement(gui) and getElementType(gui) or type(gui)))
    assert(type(delay)=='table', 'bad argument guiSetDelay @2 table expected got '..type(delay))
    local canContinue
    for key in pairs(types) do
        if delay[key] then
            canContinue = true;
            break
        end
    end
    if canContinue then
        guiSetEnabled(gui, false);
        guiEnable[gui] = {oldString = guiGetText(gui), element = gui}
        local ms = 0;
        for key, value in pairs(delay) do
            if types[key] then
                ms=ms+(types[key]*value)
            end
        end
        guiEnable[gui].timer = setTimer(function()
            guiSetEnabled(gui, true)
            if isTimer(guiEnable[gui].timer) then killTimer(guiEnable[gui].timer);guiSetText(gui,guiEnable[gui].oldString);guiEnable[gui]=nil;end;
            local newTable = {};
            for _, value in pairs(guiEnable) do
                table.insert(newTable, value)
            end
            if #newTable == 0 and isTimer(timerCheck) then killTimer(timerCheck) end
        end, ms, 1)
        timer(true)
        if not isTimer(timerCheck) then timerCheck = setTimer(timer, 1000, 0);end;
        setTimer(function() local details = getTimerDetails(guiEnable[gui].timer);guiSetText(guiEnable[gui].element, msToString(details)); end, 50, 1)
    end
end

 

Posted
16 hours ago, Master_MTA said:

الكود ناقص تعريفات التيبل

 

On 30/03/2019 at 22:23, #,xiRocKyz said:

 

 

  • Like 1
Posted
24 minutes ago, Master_MTA said:

عشان كذا قلت ناقص تعريفات التيبل +_+

هو اخذ الفنكشن بس بدون الجداول و الفنكشنات المفيدة الثانية

Posted
55 minutes ago, #,xiRocKyz said:

الفنكشنات

وانا وش قلت ؟+_+

الفنكشن ناقص تعريفات التيبلات ما قلت انت غلطان صباح الفل +_+

+لصاحب الموضوع

تاكد من تفعيل

ال oop

من الميتا

  • Like 1
  • Sad 1
Posted
15 hours ago, Master_MTA said:

وانا وش قلت ؟+_+

الفنكشن ناقص تعريفات التيبلات ما قلت انت غلطان صباح الفل +_+

+لصاحب الموضوع

تاكد من تفعيل

ال oop

من الميتا

مايحتاج يفعل ال oop

لانه بس حق اللعبة وانا ماستخدمته على فنكشنات من اللعبة

Posted
2 minutes ago, #,xiRocKyz said:

اللعبة

يا روك الله يصلحك ترا مب محتاجه فلسفه لو غلطت قول انا غلطت وخلاص خل الموضوع يمر لا تكثر ردودنا وتخرب الموضوع على الرجال

عالعموم اللي تشوفه لو انا غلطان فانا غلطان يلا بالتوفيق

+_+

Posted
28 minutes ago, Master_MTA said:

يا روك الله يصلحك ترا مب محتاجه فلسفه لو غلطت قول انا غلطت وخلاص خل الموضوع يمر لا تكثر ردودنا وتخرب الموضوع على الرجال

عالعموم اللي تشوفه لو انا غلطان فانا غلطان يلا بالتوفيق

+_+

oop بعد تجربة فعلية واطفاء 
معه oopأيّ ان اي فنكشن يجي من اللعبة بحد ذاتها يمكن استخدام الـ ,:find اشتغل سطر

 

  • Like 1
Posted
3 minutes ago, Master_MTA said:

تمام بالتوفيق للججميع اعتذر على الازعاج

(كل بني آدم خطاء, وخير الخطّائين التوابون". (الترمذي وابن ماجه والحاكم وصححه"

  • Like 1

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...