3B00DG4MER Posted April 12, 2014 Share Posted April 12, 2014 Hello,Today i've made a Progress bar,On Client Render +0.5 but it's not adding 0.5,it's working with +1 addEventHandler("onClientRender",root,function() progress = guiProgressBarGetProgress(GUIEditor.progressbar[1]) guiProgressBarSetProgress(GUIEditor.progressbar[1], progress+0.5) outputChatBox ( "Current progress:" .. progress .. "%" ) end) Link to comment
Mr_Moose Posted April 12, 2014 Share Posted April 12, 2014 bool guiProgressBarSetProgress ( progressBar theProgressbar, float progress ) Might be an issue in the wiki description, instead of float it's probably int. Link to comment
Gtagasje Posted April 12, 2014 Share Posted April 12, 2014 My guess would be that the progress bar only accepts round numbers. If you want to add 0.5% you could make it so that the progress bar updates only every 2 frames but the text updates every frame, or you could make your own progress bar using DX functions. Link to comment
3B00DG4MER Posted April 12, 2014 Author Share Posted April 12, 2014 My guess would be that the progress bar only accepts round numbers. If you want to add 0.5% you could make it so that the progress bar updates only every 2 frames but the text updates every frame, or you could make your own progress bar using DX functions. Thanks i've used setTimer Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now