Jump to content

guiProgressBarSetProgress not working :s


DarkLink

Recommended Posts

Okay guys I am trying to fill a progress bar 0.5 each 900ms, so for 1800ms would fill 1% of the bar right?

The problem is that the bar doesnt even fill.. maybe because just work for more than 1% ?

Here is my function:

  
function encheBarra(thehouseColShape) 
     
    fillingHoldBar = setTimer(function(thehouseColShape) if(guiProgressBarGetProgress(holdBar)==100) then sayTextBig() elseif(getElementData(thehouseColShape,"holding",false)==false) then   deleteBar() end  outputChatBox("hei") guiProgressBarSetProgress (holdBar, guiProgressBarGetProgress(holdBar) + 0.5 ) end, 900, 201, thehouseColShape) 
  
end 
  

Thanks alot in advance ;)

Link to comment
You welcome.

P.S: You only need to duplicate the time, and that'll be like 0.5 ;).

Ye true, but what I wanted was to see the bar filling with less difference from each fill, dont know if you understand :)

But nevermind, its okay this way, I will keep 1

Thanks ;)

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