02.08.2013, 11:34
Use brackets if unsure about the order of operators. This:
Will most likely compile as:
If your tax is is, say, 10% then you will divide the player's money by 1000 instead of taking 10%.
Though that's probably not the only problem. You'll have to carefully examine each calculation.
pawn Код:
PlayerInfo[i][pPayCheck] / 100 * Tax;
pawn Код:
PlayerInfo[i][pPayCheck] / (100 * Tax);
Though that's probably not the only problem. You'll have to carefully examine each calculation.