Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(675) : warning 213: tag mismatch
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(675) : error 032: array index out of bounds (variable "PlayerInfo")
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : error 017: undefined symbol "MoneyMessage"
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : warning 215: expression has no effect
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : error 001: expected token: ";", but found "]"
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : error 029: invalid expression, assumed zero
- C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : fatal error 107: too many error messages on one line
- Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
- 5 Errors.
- enum pInfo
- {
- pKey[128],
- pLevel,
- pAdmin,
- pDonateRank,
- gPupgrade,
- pConnectTime,
- pReg,
- pSex,
- pAge,
- pOrigin,
- pCK,
- pMuted,
- pExp,
- pCash,
- pAccount,
- pCrimes,
- pKills,
- pDeaths,
- pArrested,
- pWantedDeaths,
- pPhoneBook,
- pLottoNr,
- pFishes,
- pBiggestFish,
- pJob,
- pPayCheck,
- pHeadValue,
- pJailed,
- pJailTime,
- pMats,
- pDrugs,
- pLeader,
- pMember,
- pFMember,
- pRank,
- pChar,
- pContractTime,
- pDetSkill,
- pSexSkill,
- pBoxSkill,
- pLawSkill,
- pMechSkill,
- pJackSkill,
- pCarSkill,
- pNewsSkill,
- pDrugsSkill,
- pCookSkill,
- pFishSkill,
- Float:pHealth,
- Float:pSHealth,
- pInt,
- pLocal,
- pTeam,
- pModel,
- pPnumber,
- pPhousekey,
- pPbiskey,
- Float:pPos_x,
- Float:pPos_y,
- Float:pPos_z,
- pCarLic,
- pFlyLic,
- pBoatLic,
- pFishLic,
- pGunLic,
- pGun1,
- pGun2,
- pGun3,
- pGun4,
- pAmmo1,
- pAmmo2,
- pAmmo3,
- pAmmo4,
- pCarTime,
- pPay2Day,
- pPay2DayHad,
- pCDPlayer,
- pWins,
- pLoses,
- pAlcoholPerk,
- pDrugPerk,
- pMiserPerk,
- pPainPerk,
- pTraderPerk,
- pTut,
- pMissionNr,
- pWarns,
- pAdjustable,
- pFuel,
- pMarried,
- pMarriedTo[128],
- };
- forward PayDay();
- public PayDay()
- {
- new string[128];
- new account,interest;
- new rent = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pLevel] > 0)
- {
- if(MoneyMessage[i]==1)
- {
- SendClientMessage(i, COLOR_LIGHTRED, "Você não conseguiu pagar sua dívida, foi preso.");
- GameTextForPlayer(i, "~r~Preso!", 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), "Você foi preso por %d segundos. Fiança: Incapaz", 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];
- if(key != 255)
- {
- rent = HouseInfo[key][hRent];
- if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
- {
- rent = 0;
- }
- else if(rent > GetPlayerMoney(i))
- {
- PlayerInfo[i][pPhousekey] = 255;
- SendClientMessage(i, COLOR_WHITE, "Você foi libertado.");
- 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]
- }
- else
- {
- if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; }
- else { tmpintrate = 1; }
- }
- if(PlayerInfo[i][pPayDay] >= 5)
- {
- 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];
- new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
- ConsumingMoney[i] = 1;
- GivePlayerMoney(i, 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_WHITE, "|___ BANCO DE ___|");
- format(string, sizeof(string), " Salário: $%d Imposto: -$%d", checks, TaxValue);
- SendClientMessage(i, COLOR_GRAD1, string);
- if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
- {
- format(string, sizeof(string), " Fatura da Eletricidade: -$%d", ebill);
- SendClientMessage(i, COLOR_GRAD1, string);
- }
- format(string, sizeof(string), " Saldo: $%d", account);
- SendClientMessage(i, COLOR_GRAD1, string);
- format(string, sizeof(string), " Taxa de Juros: 0.%d percent",tmpintrate);
- SendClientMessage(i, COLOR_GRAD2, string);
- format(string, sizeof(string), " Juros Adquiridos $%d", interest);
- SendClientMessage(i, COLOR_GRAD3, string);
- SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
- format(string, sizeof(string), " New Balance: $%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~Dia de Pagamento~n~~w~Salario");
- GameTextForPlayer(i, string, 5000, 1);
- rent = 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;
- }
- }
- }
- else
- {
- SendClientMessage(i, COLOR_LIGHTRED, "* Você não jogou tempo suficiente para obter um Payday (dia de pagamento).");
- }
- }
- }
- }
- Checkprop();
- return 1;
- }
Add Comment
Please, Sign In to add comment