21.07.2015, 22:22
Not sure if I understand you, but this is basic maths.
This: g_iTax += (playerData[i][pPayCheck] / 100) * g_iTaxValue;
Let's say playerData[i][pPayCheck] = 250$ and g_iTaxValue = 20%, so the player receives 250$ and needs to pay 20% of the 250$.
So the result will be: 50 += (250 / 100) * 20.
Depending on the g_iTaxValue, you can set it higher to lower his paycheck, or set it lower to give him a bigger paycheck.
This: g_iTax += (playerData[i][pPayCheck] / 100) * g_iTaxValue;
Let's say playerData[i][pPayCheck] = 250$ and g_iTaxValue = 20%, so the player receives 250$ and needs to pay 20% of the 250$.
So the result will be: 50 += (250 / 100) * 20.
Depending on the g_iTaxValue, you can set it higher to lower his paycheck, or set it lower to give him a bigger paycheck.

