вот ошибки:
F:\ÑÅÐÂÅÐ\J-Actio.pwn(10452) : error 017: undefined symbol "i"
F:\ÑÅÐÂÅÐ\J-Actio.pwn(10582) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
вот код:
public PayDay()
{
new string[128];
new account,interest;
new rent = 0;
new apptrent = 0;
new nxtlevel = PlayerInfo[i][pLevel]+1;
new expamount = nxtlevel*levelexp;
new infostring[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLevel] > 0)
{
if(MoneyMessage[i]==1)
{
SendClientMessage(i, COLOR_LIGHTRED, " Вы были не в состоянии заплатить ваш долг, время Тюрьмы.");
GameTextForPlayer(i, "~r~PA€APEм쑆!", 2000, 1);
SetPlayerInterior(i, 6);
SetPlayerPos(i, 264.6288,77.5742,1001.0391);
PlayerInfo[i][pJailed] = 1;
ResetPlayerWeapons(i);
WantedPoints[i] = 0;
PlayerInfo[i][pJailTime] = 240;
format(string, sizeof(string), " Вы были посажены в тюрьму на %d секунд. Залог: Неустановлен", PlayerInfo[i][pJailTime]);
SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
new playername2[MAX_PLAYER_NAME];
GetPlayerName(i, playername2, sizeof(playername2));
account = PlayerInfo[i][pAccount];
new key = PlayerInfo[i][pPhousekey];
new apptkey = PlayerInfo[i][pPapptkey];//datamarker
if(key != 255)
{
rent = HouseInfo[key][hRent];
if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
rent = 0;
}
else if(rent > UAS_GetValPlayerMoney(i))
{
PlayerInfo[i][pPhousekey] = 255;
SendClientMessage(i, COLOR_WHITE, " Вы были выселены.");
rent = 0;
}
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
}
new tmpintrate;
if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
{
if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; }
else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
}
if(apptkey != 255)
{
apptrent = ApartmentInfo[apptkey][aValue];
if(strcmp(playername2, ApartmentInfo[apptkey][aOwner], true) == 0)
{
apptrent = 0;
}
else if(apptrent > UAS_GetValPlayerMoney(i))
{
PlayerInfo[i][pPapptkey] = 255;
SendClientMessage(i, COLOR_WHITE, " Вы были выселены.");
apptrent = 0;
}
}
else
{
if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; }
else { tmpintrate = 1; }
}
if(PlayerInfo[i][pPayDay] >= 0)
{
Tax += TaxValue;//Should work for every player online
PlayerInfo[i][pAccount] -= TaxValue;
if(PlayerInfo[i][pDonateRank] > 0)
{
new bonus = PlayerInfo[i][pPayCheck] / 2;
PlayerInfo[i][pPayCheck] += bonus;
}
new checks = PlayerInfo[i][pPayCheck] / 5;
new ebill = (PlayerInfo[i][pAccount]/10000)+(PlayerInfo[i][pLevel]);
account += checks;
if(PlayerInfo[i][pAccount] > 0)
{
PlayerInfo[i][pAccount] -= ebill;
SBizzInfo[4][sbTill] += ebill;
}
else
{
ebill = 0;
}
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
SendClientMessage(i, COLOR_GREEN, "Получено 1 очков опыта");
SendClientMessage(i, COLOR_WHITE, "|___ БАЛАНС БАНКА ___|");
format(string, sizeof(string), " Зарплата: $%d Налог: -$%d", checks, TaxValue);
SendClientMessage(i, COLOR_GRAD1, string);
if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255 || PlayerInfo[i][pPapptkey] != 255)
{
format(string, sizeof(string), " Счет за электроэнергию: -$%d", ebill);
SendClientMessage(i, COLOR_GRAD1, string);
}
format(string, sizeof(string), " Баланс: $%d", account);
SendClientMessage(i, COLOR_GRAD1, string);
format(string, sizeof(string), " Процентная ставка: 0.%d процентов",tmpintrate);
//SendClientMessage(i, COLOR_GRAD2, string);
format(string, sizeof(string), " Начисленные проценты $%d", interest);
SendClientMessage(i, COLOR_GRAD3, string);
SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
format(string, sizeof(string), " Новый Баланс: $%d", PlayerInfo[i][pAccount]);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Плата за аренду Дома: -$%d", rent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), " Назначенная Арендная плата: -$%d", apptrent);
SendClientMessage(i, COLOR_GRAD5, string);
format(string, sizeof(string), "~y~€APЊ‡AЏA");
GameTextForPlayer(i, string, 5000, 1);
rent = 0;
apptrent = 0;
PlayerInfo[i][pPayDay] = 0;
PlayerInfo[i][pPayCheck] = 0;
PlayerInfo[i][pConnectTime] += 1;
if(PlayerInfo[i][pDonateRank] > 0)
{
PlayerInfo[i][pPayDayHad] += 1;
if(PlayerInfo[i][pPayDayHad] >= 5)
{
PlayerInfo[i][pExp]++;
PlayerInfo[i][pPayDayHad] = 0;
}
}
if (PlayerInfo[i][pExp] = expamount)
{
format(string, sizeof(string), "~g~мO‹‘† УPO‹Eм’~n~~w~ЏEЊEP’ ‹‘ УPO‹м• %d", nxtlevel);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(i);
PlayerInfo[i][pLevel]++;
if(PlayerInfo[i][pDonateRank] > 0)
{
PlayerInfo[i][pExp] -= expamount;
new total = PlayerInfo[i][pExp];
if(total > 0)
{
PlayerInfo[i][pExp] = total;
}
else
{
PlayerInfo[i][pExp] = 0;
}
}
else
{
PlayerInfo[i][pExp] = 0;
}
PlayerInfo[i][gPupgrade] = PlayerInfo[i][gPupgrade]+2;
GameTextForPlayer(i, string, 5000, 1);
format(infostring, 256, " Вы купили Уровень %d Ведите /upgrade", nxtlevel);
SendClientMessage(i, COLOR_GRAD1, infostring);
format(infostring, 256, " Вы имеете %d непотраченные Пункты Абгрейда",PlayerInfo[i][gPupgrade]);
SendClientMessage(i, COLOR_GRAD2, infostring);
}
}
else
{
SendClientMessage(i, COLOR_LIGHTRED, "* Вы не играли достаточно долго, чтобы получить Зарплату.");
}
}
}
}
Checkprop();
return 1;
}