if(PlayerInfo[i][pMember] == 1)
{
SendClientMessage(i, COLOR_WHITE, "|___ EXTRATO DO BANCO ___|");
format(string, sizeof(string), " Salбrio: R$780", TaxEstado);
PlayerInfo[i][pAccount] += 780;
SendClientMessage(i, COLOR_GRAD1, string);
}
PlayerInfo[i][pAccount] = PlayerInfo[i][pAccount] += 780;
new tmpintrate;
if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 9; }
if (key != 255 && PlayerInfo[i][pDonateRank] == 0) { tmpintrate = 3; }
if (key == 255 && PlayerInfo[i][pDonateRank] == 0) { tmpintrate = 1; }
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(PlayerInfo[i][pDonateRank] == 0)
{
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
PlayerInfo[i][pAccount] = account+interest;
format(string, sizeof(string), " Juros: 0.%d por cento",tmpintrate);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), " Juros Obtidos R$ %d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
format(string, sizeof(string), " Novo balanзo: R$ %d", PlayerInfo[i][pAccount]);
SendClientMessage(i, COLOR_GRAD5, string);
}
if(PlayerInfo[i][pDonateRank] == 1)
{
intereste = (PlayerInfo[i][pAccount]/100)*(2);
PlayerInfo[i][pAccount] = account+intereste;
format(string, sizeof(string), " Juros: 2.0 por cento",tmpintrate);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), " Juros Obtidos R$ %d", intereste);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
format(string, sizeof(string), " Novo balanзo: R$ %d", PlayerInfo[i][pAccount]);
SendClientMessage(i, COLOR_GRAD5, string);
}
format(string, sizeof(string), " Aluguel: R$ %d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
PlayerInfo[i][pLottoNr] = 0;
format(string, sizeof(string), "~y~dia de~n~~w~pagamento");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pMember] == 1)
{
SendClientMessage(playerid,0xFFFFFFAA,"|___ EXTRATO DO BANCO ___|");
format(string, sizeof(string), " Salбrio: R$780", TaxEstado);
PlayerInfo[i][pAccount] += 780;//Esse 780 й o valor do salбrio que, vocк recebeu.
SendClientMessage(i, COLOR_GRAD1, string);
SendClientMessage(playerid,0xFFFFFFAA,"|___ JUROS DO BANCO ___|");
#define Juros (5000)//Defina aqui a quantia de juros, a ser retirada do jogador.
PlayerInfo[i][pAccount] -= Juros;
format(string, sizeof(string), " Juros: Foram retirados: R$%d", Juros);
SendClientMessage(i, COLOR_GRAD1, string);
}
.
.
|
Pelo que eu entendi o que ele queria era que o dinheiro do salбrio fosse adicionado direto na conta do banco
|
PlayerInfo[i][pAccount] = PlayerInfo[i][pAccount] += 780;