02.08.2018, 23:00
Make sure that PlayerInfo[playerid][pFloatt]* and KIP[eBuyPrice]* are both floats. Just to be safe, you could convert 4200 to float, therefore making it 4200.0 or float(4200).
This happens because integer division truncates (4200/500000 < 0, so it truncates — rounds down — to 0), so you need to make sure atleast one of the parameters is of type float.
* In your enums, set pFloatt to Float: pFloatt and eBuyPrice to Float:eBuyPrice.
pawn Код:
new Float:foo;
foo += 4200.0/500000.0;
printf("%.5f", foo);
* In your enums, set pFloatt to Float: pFloatt and eBuyPrice to Float:eBuyPrice.