Paycheck help.
#5

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.
Reply


Messages In This Thread
Paycheck help. - by IndependentGaming - 21.07.2015, 18:33
Re: Paycheck help. - by Mariciuc223 - 21.07.2015, 19:10
Re: Paycheck help. - by IndependentGaming - 21.07.2015, 19:19
Re: Paycheck help. - by IndependentGaming - 21.07.2015, 21:00
Re: Paycheck help. - by Krokett - 21.07.2015, 22:22

Forum Jump:


Users browsing this thread: 1 Guest(s)