3B00DG4MER Posted April 12, 2014 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) SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
Mr_Moose Posted April 12, 2014 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. MTA Community | GitHub | 99Stack Forum
Gtagasje Posted April 12, 2014 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. Yes, this is infact a signature.
3B00DG4MER Posted April 12, 2014 Author 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 SAF/SAO - 30% Skype: Themerzoug2020 in-game name:3B00DG4MER
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