View Issue Details

IDProjectCategoryView StatusLast Update
0005089Multi Theft Auto : San AndreasScriptingpublic2010-03-21 12:08
ReporterR3mpAssigned Tomabako 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.0.4Fixed in Version1.0.4 
Summary0005089: guiProgressBarGetProgress doesnt always return the correct value
Description

when the progress is set to certain numbers, guiProgressBarGetProgress will return the incorrect value
53 and 59 both return 1 less than they should (52,58) such that if you incremented the set value by 1 from 0 to 100 and print the get value it would show ...50,51,52,52,54,55...

Steps To Reproduce

runcode the following clientside:

bar = guiCreateProgressBar(10,10,100,40,false)
guiProgressBarSetProgress(bar,53)
guiProgressBarGetProgress(bar)
guiProgressBarSetProgress(bar,59)
guiProgressBarGetProgress(bar)

Additional Information

runcode log:

Executing client-side command: bar = guiCreateProgressBar(10,10,100,40,false)
Command executed!
Executing client-side command: guiProgressBarSetProgress(bar,52)
Command results: true [boolean]
Executing client-side command: guiProgressBarGetProgress(bar)
Command results: 52 [number]
Executing client-side command: guiProgressBarSetProgress(bar,53)
Command results: true [boolean]
Executing client-side command: guiProgressBarGetProgress(bar)
Command results: 52 [number]
Executing client-side command: guiProgressBarSetProgress(bar,58)
Command results: true [boolean]
Executing client-side command: guiProgressBarGetProgress(bar)
Command results: 58 [number]
Executing client-side command: guiProgressBarSetProgress(bar,59)
Command results: true [boolean]
Executing client-side command: guiProgressBarGetProgress(bar)
Command results: 58 [number]

TagsNo tags attached.

Issue History

Date Modified Username Field Change