SA-MP Forums Archive
Paycheck/Payday Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Paycheck/Payday Problem (/showthread.php?tid=549945)



Paycheck/Payday Problem - IndependentGaming - 09.12.2014

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


Re: Paycheck/Payday Problem - IndependentGaming - 10.12.2014

Anyone does know how to fox this ??


Re: Paycheck/Payday Problem - IndependentGaming - 10.12.2014

Код:
f(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;
}



Re: Paycheck/Payday Problem - Smally - 10.12.2014

Do you want it to give them the money automatically?


Re: Paycheck/Payday Problem - IndependentGaming - 10.12.2014

what do you mean ? it gives the money already when they got their paycheck but the problem is that the cash they get is not RPLY


Re: Paycheck/Payday Problem - Smally - 10.12.2014

If you want them to get it in their hand then you need to use the GivePlayerMoney function.


Re: Paycheck/Payday Problem - IndependentGaming - 10.12.2014

uhhm i know that ? but lets get to the point please.


Re: Paycheck/Payday Problem - Divergent - 10.12.2014

Quote:
Originally Posted by hwakinsRP
Посмотреть сообщение
uhhm i know that ? but lets get to the point please.
What is the point? You said the money isn't given "RPly." Does this mean that you want the value to be more realistic? Just change the value of pPaycheck.


Re: Paycheck/Payday Problem - IndependentGaming - 10.12.2014

yes the value needs more realistic does not matter what i change there the paycheck does not go below 3600 by level 1


Re: Paycheck/Payday Problem - Divergent - 10.12.2014

Just search for "pPaycheck." You'll see a section where the value is defined. If you need help, PM me and I can show you over TeamViewer.