Very very weird vars behavior
#3

Problem is in var for procent

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
I printed vars and I got this

Quote:

[14.12.2015. 10:28:38] u bodovi 12, d bodovi 3, bodovi 9

So, it is 12 / 14 and that result * 100. But for 100% I need have 14/14 points
Reply


Messages In This Thread
Very very weird vars behavior - by vannesenn - 13.12.2015, 21:36
Re: Very very weird vars behavior - by vannesenn - 13.12.2015, 22:45
Re: Very very weird vars behavior - by vannesenn - 14.12.2015, 08:34
Re: Very very weird vars behavior - by Sithis - 14.12.2015, 14:12
Re: Very very weird vars behavior - by vannesenn - 14.12.2015, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)