Paycheck/Payday Problem
#1

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
Reply
#2

Anyone does know how to fox this ??
Reply
#3

Код:
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;
}
Reply
#4

Do you want it to give them the money automatically?
Reply
#5

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
Reply
#6

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

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

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)