24.11.2010, 23:15
Pessoal, eu nгo sei mais oque fazer, jб procurei de todas as formas, queria abaixar o valor do sбlario no PayDay, e colocar o imposto pra ser cobrado, pois ja coloquei imposto de 500$, e no payday sу fica aquele nъmero maldito, o nъmero 0, e eu queria abaixar o salario do pay day pra 500 no minimo a 1400 no mбximo...
olha o cуdigo do imposto...
olha o cуdigo do imposto...
pawn Код:
{
ebill = 0;
}
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
SendClientMessage(i, COLOR_WHITE, "|___ Sбlario___|");
format(string, sizeof(string), " Salario: $%d Imposto: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_GRAD1, string);
if(PlayerInfo[i][pPhousekey] != NONE_CAR || PlayerInfo[i][pPbiskey] != 255)
{
format(string, sizeof(string), " Electricidade: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), " Saldo Bancario: $%d", account);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), " Juros: 0.%d Por Cento",tmpintrate);
SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Valor Ganho com Juros: $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
format(string, sizeof(string), " Novo saldo: $%d", PlayerInfo[i][pAccount]);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Aluguel: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "~y~Payday");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pDonateRank] > 0)
{