09.12.2014, 21:20
Hello People.
We are trying to get realistic paycheck in our script.
Now I saw the system of NGG and HZRP but Im trying to get that together.
Like in NGG you get each connected hour a paycheck.
and in HZRP you get each full Hour a Paycheck.
I want to make it like that you get each connected hour a paycheck but with the realistic prices.
if(PlayerInfo[i][pSA] == 0)
{
format(string, sizeof(string), " Paycheck: $%s | SA Gov Tax: $%s (%d percent)", number_format(PlayerInfo[i][pPayCheck]), number_format((PlayerInfo[i][pPayCheck] / 100) * TaxValue), TaxValue);
PlayerInfo[i][pAccount] -= (PlayerInfo[i][pPayCheck] / 100) * TaxValue;
Tax += (PlayerInfo[i][pPayCheck] / 100) * TaxValue;
}
We tryed to set [pPayCheck] / 100) * TaxValue;
to [pPayCheck] / 1000) * TaxValue;
But nothing happens with the money you get each paycheck..
Is there anything else that I need to search for?
Sincerly,
D@rkStyl3
We are trying to get realistic paycheck in our script.
Now I saw the system of NGG and HZRP but Im trying to get that together.
Like in NGG you get each connected hour a paycheck.
and in HZRP you get each full Hour a Paycheck.
I want to make it like that you get each connected hour a paycheck but with the realistic prices.
if(PlayerInfo[i][pSA] == 0)
{
format(string, sizeof(string), " Paycheck: $%s | SA Gov Tax: $%s (%d percent)", number_format(PlayerInfo[i][pPayCheck]), number_format((PlayerInfo[i][pPayCheck] / 100) * TaxValue), TaxValue);
PlayerInfo[i][pAccount] -= (PlayerInfo[i][pPayCheck] / 100) * TaxValue;
Tax += (PlayerInfo[i][pPayCheck] / 100) * TaxValue;
}
We tryed to set [pPayCheck] / 100) * TaxValue;
to [pPayCheck] / 1000) * TaxValue;
But nothing happens with the money you get each paycheck..
Is there anything else that I need to search for?
Sincerly,
D@rkStyl3