14.12.2015, 08:34
Problem is in var for procent
I printed vars and I got this
So, it is 12 / 14 and that result * 100. But for 100% I need have 14/14 points
Code:
_bodovi = Bit4_Get(_HRP_RPTestTocnihOdg, _playerid) + _dodatni_bodovi; printf("u bodovi %d, d bodovi %d, bodovi %d", _bodovi, _dodatni_bodovi, Bit4_Get(_HRP_RPTestTocnihOdg, _playerid)); _postotak = _bodovi / 14 * 100; // HERE'S A PROBLEM
Quote:
[14.12.2015. 10:28:38] u bodovi 12, d bodovi 3, bodovi 9 |