Jump to content

طلب !!


Recommended Posts

ممكن تشرح اكثر ؟

هذا مثال شغله وجربة وشوف بس سوي لك بروجرس بار بدل النقط ماتاكدت منة

eProgressBar =  guiCreateProgressBar( ..... )  
  
eTimer = setTimer (  
        function(       ) 
            guiProgressBarSetProgress( eProgressBar,guiProgressBarGetProgress( eProgressBar ) + 1 ) 
            if guiProgressBarGetProgress( eProgressBar ) >= 100 then  
                if isTimer ( eTimer ) then  
                killTimer ( eTimer )  
                eTimer = nil end 
                destroyElement ( eProgressBar ) 
            end 
        end,250,0,true ) 

Link to comment

طيب هذا سويته بشرط الضغط على الزر مااشتغل ليه ؟؟

addEventHandler ( "onClientGUIClick", getRootElement() , 
  
eProgressBar =  guiCreateProgressBar( 209, 508, 581, 35, false, nil ) 
eTimer = setTimer ( 
function(       ) 
if source == imgg then 
            guiProgressBarSetProgress( eProgressBar,guiProgressBarGetProgress( eProgressBar ) + 1 ) 
            if guiProgressBarGetProgress( eProgressBar ) >= 100 then 
            guiSetVisible(wdwLogin_Pannel,true) 
            guiSetVisible(img4,false) 
                if isTimer ( eTimer ) then 
                killTimer ( eTimer ) 
                eTimer = nil end 
                destroyElement ( eProgressBar ) 
            end 
        end,250,0,true ) 
  
end 
 end 
)  

Link to comment

جرب

eProgressBar =  guiCreateProgressBar( 209, 508, 581, 35, false, nil ) 
  
addEventHandler("onClientGUIClick",root, 
function () 
    if source == imgg  then 
    eTimer = setTimer ( 
        function(       ) 
            guiProgressBarSetProgress( eProgressBar,guiProgressBarGetProgress( eProgressBar ) + 1 ) 
            if guiProgressBarGetProgress( eProgressBar ) >= 100 then 
                if isTimer ( eTimer ) then 
                killTimer ( eTimer ) 
                eTimer = nil end 
                destroyElement ( eProgressBar ) 
            end 
        end,250,0,true ) 
    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...