Editei tirei a public toda ._.
pawn Код:
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;