C:\Users\Alysu\Desktop\[GM] Brasil Play Show RPG\gamemodes\BPS.pwn(53799) : error 017: undefined symbol "i"
PlayerInfo[i][pCasher] += eventohallowencash;
if(eventonatalbps== 1) { new eventonatalbps= 20 + random(5); PlayerInfo[i][pCasher] += eventonatalbps; format(stringpayday, sizeof(stringpayday), "{800080}[Natal BPS]{FF9900}: Estб ativado, vocк recebeu Ђ %d Cash's .", eventonatalbps); }
if(eventonatalbps== 1)
{
new eventonatalbps= 20 + random(5);
PlayerInfo[i][pCasher] += eventonatalbps;
format(stringpayday, sizeof(stringpayday), "{800080}[Natal BPS]{FF9900}: Estб ativado, vocк recebeu Ђ %d Cash's .", eventonatalbps);
}
Isso ta dentro de um loop?
pawn Код:
|
BPS::PayDay() { new Conta, dia, mes, ano; new rent = 0; timeinc = 0; teveguerra=false; teveprevisao=false; ResetSeq(); new stringpayday[128]; getdate(ano, mes, dia); format( stringpayday, sizeof stringpayday, "%s",VerSemana(dia,mes,ano)); TextDrawSetString(Reloginho3, stringpayday); foreach(Player, i) { SetPVarInt(i, #VarFlood1, 0); SetPVarInt(i, #VarFlood2, 0); SetPVarInt(i, #VarFlood3, 0); SetPVarInt(i, #VarFlood4, 0); SetPVarInt(i, #VarFlood5, 0); SetPVarInt(i, #VarFlood6, 0); SetPVarInt(i, #VarFlood7, 0); SetPVarInt(i, #VarFlood8, 0); SetPVarInt(i, #VarFlood9, 0); SetPVarInt(i, #VarFlood10, 0); SetPVarInt(i, #VarFlood11, 0); SetPVarInt(i, #VarFlood13, 0); SetPVarInt(i, #VarFlood14, 0); SetPVarInt(i, #VarGranaBar1, 0); SetPVarInt(i, #VarGranaBar2, 0); SetPVarInt(i, #VarGranaBar3, 0); SetPVarInt(i, #VarGranaBar4, 0); SetPVarInt(i, #VarGranaBar5, 0); SetPVarInt(i, #VarFloodLocalizar, 0); SetPVarInt(i, #VarFloodsprunk, 0); SetPVarInt(i, "VarDano", 0); SetPVarInt(i, "timeLastVeh", 0); if(gPlayerLogged[i]) { if(PlayerInfo[i][pLevel] > 0) { if(MoneyMessage[i]==1) { SendClientMessage(i, 0xA4D1FFFF, "Vocк nгo quitou suas dividas, portanto levou 50 mil de multa."); GameTextForPlayer(i, "~r~Caloteiro !", 2000, 1); GivePlayerMoney(i, -50000); //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(stringpayday, sizeof(stringpayday), "Vocк foi preso por %d segundos. Fianзa: Desativada", PlayerInfo[i][pJailTime]); //SendClientMessage(i, COLOR_LIGHTBLUE, stringpayday); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); new key = PlayerInfo[i][pPHousekey]; if(key != 500) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[i][pPHousekey] = 500; SendClientMessage(i, COLOR_WHITE, "Vocк foi expulso(a)."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } if(PlayerInfo[i][pPayDay] >= 3) { //new Conta = PlayerInfo[i][pConta]; new interest; new nxtlevel = PlayerInfo[i][pLevel]+1; new expquantidade = nxtlevel*levelexp; new exp = PlayerInfo[i][pExp]; new tmpintrate; Tax += TaxValue;//Shorld work for every player online new Aleatoriedade = random(2000); new Aleatoriedade2 = random(9999); if(Aleatoriedade < 10000) Aleatoriedade += Aleatoriedade2; PlayerInfo[i][pConta] -= TaxValue; new checks = PlayerInfo[i][pSalario]*Aleatoriedade; new ebill = PlayerInfo[i][pLevel]*1000; new Febill = random(1500); new PGLT = random(300000); if(PGLT < 100000) PGLT += 100000; if(checks > 200000) checks = Aleatoriedade; if(checks < 30000) checks += 30000; if(checks < 0) checks = 100000; PlayerInfo[i][pConta] += checks; if(PlayerInfo[i][pConta] > 0) { PlayerInfo[i][pConta] -= ebill; SBizzInfo[4][sbTill] += ebill; PLO += ebill; DepositarOrgGrana(7,ebill); } else { ebill = 0; } Conta = PlayerInfo[i][pConta]; interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate); PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); PlayerInfo[i][pConta] = Conta+interest; DepositarOrgGrana(7,TaxValue); SendClientMessage(i, BRANCO_COR, "_____________________ PayDay (Pagamento) _____________________"); if(Conta > 0) { format(stringpayday, sizeof(stringpayday), "| Conta Bancaria: {FF0000}R$%s", ConvertMoney(Conta)); SendClientMessage(i, COLOR_GRAD1, stringpayday); } else { format(stringpayday, sizeof(stringpayday), "| Conta Bancaria: {FF0000}R$-%s", ConvertMoney(Conta)); SendClientMessage(i, COLOR_GRAD1, stringpayday); } format(stringpayday, sizeof(stringpayday), "| Salario: {41DD36}$%s {FFFFFF}Despesas: {FF0000}-$%s", ConvertMoney(checks), ConvertMoney(TaxValue)); SendClientMessage(i, BRANCO_COR, stringpayday); format(stringpayday, sizeof(stringpayday), "| Medico: {FF0000}-$300 {FFFFFF}Imposto: {FF0000}-$%s", ConvertMoney(TaxValue)); SendClientMessage(i, BRANCO_COR, stringpayday); if(PlayerInfo[i][pPHousekey] != 500 || PlayerInfo[i][pPbiskey] != 255) { format(stringpayday, sizeof(stringpayday), "» Energia [%s]: {FF0000}-R$%d ", SBizzInfo[4][sbMessage], ebill); SendClientMessage(i, BRANCO_COR, stringpayday); PMH += Febill; PDU += Febill; SacarOrgGrana(7,Febill); } if(PlayerInfo[i][pPFazkey] != 255) { format(stringpayday, sizeof(stringpayday), "| Poзo d'agua: {FF0000}-R$%d", ebill); SendClientMessage(i, COLOR_GRAD1, stringpayday); PME += Febill; PDU += Febill; SacarOrgGrana(7,Febill); } if(PlayerInfo[i][pChatFomeSede] == 0) { SendClientMessage(i, BRANCO_COR, "| Bфnus Fome/Sede {01DF01}ON {FFFFFF}| Respeito: {41DD36}+2"); PlayerInfo[i][pExp] += 2; } if(PlayerInfo[i][pVIP] == 0) { tmpintrate = 6; PlayerInfo[i][pExp]++; format(stringpayday, sizeof(stringpayday), "| Multiplicador de salбrio (VIP): {1E90FF}0x {FFFFFF}Respeito: {41DD36}+1{FFFFFF} ({1E90FF}%d/%d{FFFFFF})",exp, expquantidade); SendClientMessage(i, BRANCO_COR, stringpayday); PlayerInfo[i][pConta] += Conta*1/1030; } if(PlayerInfo[i][pVIP] == 1) { tmpintrate = 6; PlayerInfo[i][pExp] += 1; format(stringpayday, sizeof(stringpayday), "| Multiplicador de salбrio (VIP): {1E90FF}2x {FFFFFF}Respeito: {41DD36}+1{FFFFFF} ({1E90FF}%d/%d{FFFFFF})",exp, expquantidade); SendClientMessage(i, BRANCO_COR, stringpayday); PlayerInfo[i][pConta] += Conta*2/2630; } if(PlayerInfo[i][pVIP] == 2) { tmpintrate = 18; PlayerInfo[i][pExp] += 2; format(stringpayday, sizeof(stringpayday), "| Multiplicador de salбrio (VIP): {1E90FF}3x {FFFFFF}Respeito: {41DD36}+2{FFFFFF} ({1E90FF}%d/%d{FFFFFF})",exp, expquantidade); SendClientMessage(i, BRANCO_COR, stringpayday); PlayerInfo[i][pConta] += Conta*3/2630; } if(PlayerInfo[i][pVIP] == 5) { tmpintrate = 24; PlayerInfo[i][pExp] += 3; format(stringpayday, sizeof(stringpayday), "| Multiplicador de salбrio (VIP): {1E90FF}4x {FFFFFF}Respeito: {41DD36}+3{FFFFFF} ({1E90FF}%d/%d{FFFFFF})",exp, expquantidade); SendClientMessage(i, BRANCO_COR, stringpayday); PlayerInfo[i][pConta] += Conta*4/2630; } if(PlayerInfo[i][pVIP] == 6) { tmpintrate = 30; PlayerInfo[i][pExp] += 4; format(stringpayday, sizeof(stringpayday), "| Multiplicador de salбrio (VIP): {1E90FF}5x {FFFFFF}Respeito: {41DD36}+4{FFFFFF} ({1E90FF}%d/%d{FFFFFF})",exp, expquantidade); SendClientMessage(i, BRANCO_COR, stringpayday); PlayerInfo[i][pConta] += Conta*5/2630; } if(PlayerInfo[i][pVIP] == 7) { tmpintrate = 30; PlayerInfo[i][pExp]+=6; format(stringpayday, sizeof(stringpayday), "| Multiplicador de salбrio (VIP): {1E90FF}8x {FFFFFF}Respeito: {41DD36}+6{FFFFFF} ({1E90FF}%d/%d{FFFFFF})",exp, expquantidade); SendClientMessage(i, BRANCO_COR, stringpayday); PlayerInfo[i][pConta] += Conta*8/2630; } format(stringpayday, sizeof(stringpayday), "| Valor ganho com juros: {1E90FF}0.%d por cento", tmpintrate); SendClientMessage(i, BRANCO_COR, stringpayday); Conta = PlayerInfo[i][pConta]; interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate); PlayerInfo[i][pConta] = Conta+interest; SalarioPlayer(i); SendClientMessage(i, BRANCO_COR, "_____________________________________________________________"); format(stringpayday, sizeof(stringpayday), "| Novo saldo bancбrio: {41DD36}$%s",ConvertMoney(PlayerInfo[i][pConta])); SendClientMessage(i, BRANCO_COR, stringpayday); if(PlayerInfo[i][pLider] == 7) { if(CofreOrg[7][Dinheiro] >= 100000) { PGLT = random(2000); } format(stringpayday, sizeof(stringpayday), "| Lucros do Governo: {41DD36}R$%s", ConvertMoney(PGLT)); SendClientMessage(i, BRANCO_COR, stringpayday); DepositarOrgGrana(7,PGLT); } if(PlayerInfo[i][pEmprego] > 0) { if(PlayerInfo[i][pContractTime] < 5) { PlayerInfo[i][pContractTime] ++; } } SetTimerEx("PararMusica", 7900, 0, "i", i); GameTextForPlayer(i, "~g~Salario", 5000, 1); rent = 0; PlayerInfo[i][pPayDay] = 0; PlayerInfo[i][pNatal] = 0; PlayerInfo[i][pSalario] = 0; PlayerInfo[i][pLimparb] = 0; PlayerInfo[i][pConnectTime] += 1; if(MoneyMessage[i]==1) { SendClientMessage(i, 0xA4D1FFFF, "Vocк nгo quitou suas dividas, portanto levou 50 mil de multa."); GameTextForPlayer(i, "~r~Caloteiro !", 2000, 1); GivePlayerMoney(i, -50000); //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(stringpayday, sizeof(stringpayday), "Vocк foi preso por %d segundos. Fianзa: Desativada", PlayerInfo[i][pJailTime]); //SendClientMessage(i, COLOR_LIGHTBLUE, stringpayday); } } else { SendClientMessage(i, COLOR_LIGHTRED, "* Vocк nгo jogou tempo suficiente para receber salбrio!"); } } } } if(eventohallowen == 1) { new str[128]; new eventohallowencash = 1 + random(200); PlayerInfo[i][pCasher] += eventohallowencash; format(str, sizeof str, "[Evento Natal BPS]: Estб ativado , Vocк recebeu Ђ %d Cash's .", eventohallowencash); SendClientMessageToAll(0xFF9900AA, str); } if(TriadMatou > HitmanMatou){ format(stringpayday, 128, "Sua Organizaзгo Ganhou o Kit Bфnus {FFFF00}[Contratos Triad %d x %d Contratos Hitmans]", TriadMatou, HitmanMatou); SendFamilyMessage(22, 0xFFFFFFFF, stringpayday); OrgVencedora = 22; } else if(HitmanMatou > TriadMatou){ format(stringpayday, 128, "Sua Organizaзгo Ganhou o Kit Bфnus {FFFF00}[Contratos Hitman %d x %d Contratos Triad]", HitmanMatou, TriadMatou); SendFamilyMessage(8, 0xFFFFFFFF, stringpayday); OrgVencedora = 8; } else{ //format(stringpayday, 128, "[BONUS]: Nenhuma agкncia de assassinos ganhou o kit bфnus neste payday."); OrgVencedora = 0; } TriadMatou = 0; HitmanMatou = 0; //SendClientMessageToAll(0xFFFF00FF, stringpayday); for(new o;o<sizeof(tempoang);o++){ tempoang[o]=0; } for(new i; i != MAX_TERRITORIOS; i++) { if(trLS[i][trCreated]) trLS[i][trLiberarGuerra] = 0; } Checkproop(); return true; }