Guest User

Untitled

a guest
Jan 4th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.50 KB | None | 0 0
  1. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(675) : warning 213: tag mismatch
  2. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(675) : error 032: array index out of bounds (variable "PlayerInfo")
  3. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : error 017: undefined symbol "MoneyMessage"
  4. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : warning 215: expression has no effect
  5. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : error 001: expected token: ";", but found "]"
  6. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : error 029: invalid expression, assumed zero
  7. C:\Documents and Settings\papu\Meus documentos\Brasil Intense Live\gamemodes\BIL.pwn(677) : fatal error 107: too many error messages on one line
  8.  
  9. Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
  10.  
  11.  
  12. 5 Errors.
  13.  
  14. enum pInfo
  15. {
  16. pKey[128],
  17. pLevel,
  18. pAdmin,
  19. pDonateRank,
  20. gPupgrade,
  21. pConnectTime,
  22. pReg,
  23. pSex,
  24. pAge,
  25. pOrigin,
  26. pCK,
  27. pMuted,
  28. pExp,
  29. pCash,
  30. pAccount,
  31. pCrimes,
  32. pKills,
  33. pDeaths,
  34. pArrested,
  35. pWantedDeaths,
  36. pPhoneBook,
  37. pLottoNr,
  38. pFishes,
  39. pBiggestFish,
  40. pJob,
  41. pPayCheck,
  42. pHeadValue,
  43. pJailed,
  44. pJailTime,
  45. pMats,
  46. pDrugs,
  47. pLeader,
  48. pMember,
  49. pFMember,
  50. pRank,
  51. pChar,
  52. pContractTime,
  53. pDetSkill,
  54. pSexSkill,
  55. pBoxSkill,
  56. pLawSkill,
  57. pMechSkill,
  58. pJackSkill,
  59. pCarSkill,
  60. pNewsSkill,
  61. pDrugsSkill,
  62. pCookSkill,
  63. pFishSkill,
  64. Float:pHealth,
  65. Float:pSHealth,
  66. pInt,
  67. pLocal,
  68. pTeam,
  69. pModel,
  70. pPnumber,
  71. pPhousekey,
  72. pPbiskey,
  73. Float:pPos_x,
  74. Float:pPos_y,
  75. Float:pPos_z,
  76. pCarLic,
  77. pFlyLic,
  78. pBoatLic,
  79. pFishLic,
  80. pGunLic,
  81. pGun1,
  82. pGun2,
  83. pGun3,
  84. pGun4,
  85. pAmmo1,
  86. pAmmo2,
  87. pAmmo3,
  88. pAmmo4,
  89. pCarTime,
  90. pPay2Day,
  91. pPay2DayHad,
  92. pCDPlayer,
  93. pWins,
  94. pLoses,
  95. pAlcoholPerk,
  96. pDrugPerk,
  97. pMiserPerk,
  98. pPainPerk,
  99. pTraderPerk,
  100. pTut,
  101. pMissionNr,
  102. pWarns,
  103. pAdjustable,
  104. pFuel,
  105. pMarried,
  106. pMarriedTo[128],
  107. };
  108.  
  109.  
  110.  
  111.  
  112.  
  113. forward PayDay();
  114.  
  115. public PayDay()
  116. {
  117. new string[128];
  118. new account,interest;
  119. new rent = 0;
  120. for(new i = 0; i < MAX_PLAYERS; i++)
  121. {
  122. if(IsPlayerConnected(i))
  123. {
  124. if(PlayerInfo[i][pLevel] > 0)
  125. {
  126. if(MoneyMessage[i]==1)
  127. {
  128. SendClientMessage(i, COLOR_LIGHTRED, "Você não conseguiu pagar sua dívida, foi preso.");
  129. GameTextForPlayer(i, "~r~Preso!", 2000, 1);
  130. SetPlayerInterior(i, 6);
  131. SetPlayerPos(i, 264.6288,77.5742,1001.0391);
  132. PlayerInfo[i][pJailed] = 1;
  133. ResetPlayerWeapons(i);
  134. WantedPoints[i] = 0;
  135. PlayerInfo[i][pJailTime] = 240;
  136. format(string, sizeof(string), "Você foi preso por %d segundos. Fiança: Incapaz", PlayerInfo[i][pJailTime]);
  137. SendClientMessage(i, COLOR_LIGHTBLUE, string);
  138. }
  139. new playername2[MAX_PLAYER_NAME];
  140. GetPlayerName(i, playername2, sizeof(playername2));
  141. account = PlayerInfo[i][pAccount];
  142. new key = PlayerInfo[i][pPhousekey];
  143. if(key != 255)
  144. {
  145. rent = HouseInfo[key][hRent];
  146. if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
  147. {
  148. rent = 0;
  149. }
  150. else if(rent > GetPlayerMoney(i))
  151. {
  152. PlayerInfo[i][pPhousekey] = 255;
  153. SendClientMessage(i, COLOR_WHITE, "Você foi libertado.");
  154. rent = 0;
  155. }
  156. HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
  157. }
  158. new tmpintrate;
  159. if (key != 255 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
  160. {
  161. if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = intrate+4; }
  162. else { tmpintrate = intrate+2; }//HouseInfo[key][hLevel]
  163. }
  164. else
  165. {
  166. if(PlayerInfo[i][pDonateRank] > 0) { tmpintrate = 3; }
  167. else { tmpintrate = 1; }
  168. }
  169. if(PlayerInfo[i][pPayDay] >= 5)
  170. {
  171. Tax += TaxValue;//Should work for every player online
  172. PlayerInfo[i][pAccount] -= TaxValue;
  173. if(PlayerInfo[i][pDonateRank] > 0)
  174. {
  175. new bonus = PlayerInfo[i][pPayCheck] / 2;
  176. PlayerInfo[i][pPayCheck] += bonus;
  177. }
  178. new checks = PlayerInfo[i][pPayCheck];
  179. new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
  180. ConsumingMoney[i] = 1;
  181. GivePlayerMoney(i, checks);
  182. if(PlayerInfo[i][pAccount] > 0)
  183. {
  184. PlayerInfo[i][pAccount] -= ebill;
  185. SBizzInfo[4][sbTill] += ebill;
  186. }
  187. else
  188. {
  189. ebill = 0;
  190. }
  191. interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
  192. PlayerInfo[i][pExp]++;
  193. PlayerPlayMusic(i);
  194. PlayerInfo[i][pAccount] = account+interest;
  195. SendClientMessage(i, COLOR_WHITE, "|___ BANCO DE ___|");
  196. format(string, sizeof(string), " Salário: $%d Imposto: -$%d", checks, TaxValue);
  197. SendClientMessage(i, COLOR_GRAD1, string);
  198. if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
  199. {
  200. format(string, sizeof(string), " Fatura da Eletricidade: -$%d", ebill);
  201. SendClientMessage(i, COLOR_GRAD1, string);
  202. }
  203. format(string, sizeof(string), " Saldo: $%d", account);
  204. SendClientMessage(i, COLOR_GRAD1, string);
  205. format(string, sizeof(string), " Taxa de Juros: 0.%d percent",tmpintrate);
  206. SendClientMessage(i, COLOR_GRAD2, string);
  207. format(string, sizeof(string), " Juros Adquiridos $%d", interest);
  208. SendClientMessage(i, COLOR_GRAD3, string);
  209. SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
  210. format(string, sizeof(string), " New Balance: $%d", PlayerInfo[i][pAccount]);
  211. SendClientMessage(i, COLOR_GRAD5, string);
  212. format(string, sizeof(string), " Aluguel: -$%d", rent);
  213. SendClientMessage(i, COLOR_GRAD5, string);
  214. format(string, sizeof(string), "~y~Dia de Pagamento~n~~w~Salario");
  215. GameTextForPlayer(i, string, 5000, 1);
  216. rent = 0;
  217. PlayerInfo[i][pPayDay] = 0;
  218. PlayerInfo[i][pPayCheck] = 0;
  219. PlayerInfo[i][pConnectTime] += 1;
  220. if(PlayerInfo[i][pDonateRank] > 0)
  221. {
  222. PlayerInfo[i][pPayDayHad] += 1;
  223. if(PlayerInfo[i][pPayDayHad] >= 5)
  224. {
  225. PlayerInfo[i][pExp]++;
  226. PlayerInfo[i][pPayDayHad] = 0;
  227. }
  228. }
  229. }
  230. else
  231. {
  232. SendClientMessage(i, COLOR_LIGHTRED, "* Você não jogou tempo suficiente para obter um Payday (dia de pagamento).");
  233. }
  234. }
  235. }
  236. }
  237. Checkprop();
  238. return 1;
  239. }
Add Comment
Please, Sign In to add comment