21.07.2015, 18:33
Hello i was wondering if this:
Stands for 100 + or x the tax
so for example 100 X 10% tax is 200 % paycheck?
PHP код:
playerData[i][pDeposit] -= (playerData[i][pPayCheck] / 100) * g_iTaxValue;
>>> g_iTax += (playerData[i][pPayCheck] / 100) * g_iTaxValue;
playerData[i][pDeposit] += interest;
format(string, sizeof(string), " Interest gained: $%s", number_format(interest));
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|_______________________________________________|");
format(string, sizeof(string), " New balance: $%s | Rent paid: $%d", number_format(playerData[i][pDeposit]), (0 <= playerData[i][pRenting] < MAX_HOUSES) ? (houseData[playerData[i][pRenting]][h_iRentFee]) : (0));
SendClientMessage(i, COLOR_GRAD5, string);
so for example 100 X 10% tax is 200 % paycheck?