Jump to content

Proplem in my script


ErHaBe

Recommended Posts

hallo

what is proplem in ProgressBar

unexpected symbol near ',' Line 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", 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 
    end 
end 
, 100, 0) 

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