Jump to content

مساعدة بل بروجريسس


Recommended Posts

السلام عليكم

انا عملت بروجريسس بار

طب انا عملتها وكل شي

بس فيه مشكله

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

بدي حل

Link to comment

لا اذا وصل 100 يعيد من جديد

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

Link to comment

شباب شو المشكله

unexpected symbol near ',' سطر 14

addEventHandler("onClientGUIClick", resourceRoot, 
function () 
if source == b2 then 
progTimer = setTimer(function () 
if guiProgressBarGetProgress (pro2)< 100 then 
guiProgressBarSetProgress(pro2, guiProgressBarGetProgress (pro2) + 10 ) 
if ( guiGetEnabled ( b2 ) == true ) then  
guiSetEnabled ( b2, false ) 
else 
guiSetEnabled ( b2, true ) 
killTimer(progTimer ) 
setElementData(resourceRoot, "ResourceAdminMessag", text, true) 
end 
end, 100, 0) 
  
end 
end 

Link to comment

addEventHandler("onClientGUIClick", b2, 
function ( ) 
if ( isTimer( progTimer ) ) then killTimer ( progTimer ) end 
    if ( Progress_ < 100 ) then guiProgressBarSetProgress(pro2, Progress_+ 10 ) else guiProgressBarSetProgress(pro2, 0 ) end 
        local Progress_ = guiProgressBarGetProgress ( pro2 ) 
            progTimer = setTimer( function ( ) 
            guiSetEnabled ( b2, not guiGetEnabled ( b2 ) ) 
            killTimer( progTimer ) 
            setElementData(resourceRoot, "ResourceAdminMessag", text, true) 
    end, 100, 0) 
end , false ) 
  
  
Link to comment

addEventHandler("onClientGUIClick", resourceRoot, 
function () 
    if ( source == b2 ) then 
        if ( isTimer(progTimer) ) then return end 
        progTimer = setTimer(function () 
            guiProgressBarSetProgress(pro2, guiProgressBarGetProgress (pro2) + 10 ) 
            if ( guiProgressBarGetProgress (pro2) >= 100 ) then 
                if ( guiGetEnabled ( b2 ) == true ) then 
                    guiSetEnabled ( b2, false ) 
                else 
                    guiSetEnabled ( b2, true ) 
                    setElementData(resourceRoot, "ResourceAdminMessag", text, true) 
                end 
                killTimer(progTimer ) 
            end 
        end, 100, 0) 
    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...