[10:36:44] [debug] Run time error 4: "Array index out of bounds" [10:36:44] [debug] Attempted to read/write array element at index 682 in array of size 682 [10:36:44] [debug] AMX backtrace: [10:36:44] [debug] #0 00002a64 in ?? (1065353216, 1138622464, 1142923264, 1075838976, -1802267649, 1120403456) in FZ.amx [10:36:44] [debug] #1 0008d734 in public CargarTodo () in FZ.amx
forward CargarTodo(); public CargarTodo() { UltimaIDBandas = 0; CargarHouses(); CargarFacciones(); CargarUsers(); Mancha = TextDrawCreate(401.000030, 87.916702, "particle:bloodpool_64"); TextDrawLetterSize(Mancha, 0.000000, 0.000000); TextDrawTextSize(Mancha, 148.000000, 170.000000); TextDrawAlignment(Mancha, 1); TextDrawColor(Mancha, -1); TextDrawSetShadow(Mancha, 0); TextDrawSetOutline(Mancha, 0); TextDrawBackgroundColor(Mancha, 255); TextDrawFont(Mancha, 4); TextDrawSetProportional(Mancha, 0); TextDrawSetShadow(Mancha, 0); CN = TextDrawCreate(651.000000, -20.000000, "Nuevo Textdraw"); TextDrawBackgroundColor(CN, 255); TextDrawFont(CN, 1); TextDrawLetterSize(CN, 0.500000, 8.099998); TextDrawColor(CN, -1); TextDrawSetOutline(CN, 0); TextDrawSetProportional(CN, 1); TextDrawSetShadow(CN, 1); TextDrawUseBox(CN, 1); TextDrawBoxColor(CN, 255); TextDrawTextSize(CN, -23.000000, 23.000000); CN2 = TextDrawCreate(677.000000, 328.000000, "Nuevo Textdraw"); TextDrawBackgroundColor(CN2, 255); TextDrawFont(CN2, 1); TextDrawLetterSize(CN2, 0.939999, 11.999999); TextDrawColor(CN2, -1); TextDrawSetOutline(CN2, 0); TextDrawSetProportional(CN2, 1); TextDrawSetShadow(CN2, 1); TextDrawUseBox(CN2, 1); TextDrawBoxColor(CN2, 255); TextDrawTextSize(CN2, -5.000000, 4.000000); CN3 = TextDrawCreate(143.367431, 50.750030, "Legends RP/DM"); TextDrawBackgroundColor(CN3, 255); TextDrawFont(CN3, 3); TextDrawLetterSize(CN3, 1.133103, 2.370001); TextDrawColor(CN3, -1); TextDrawSetOutline(CN3, 0); TextDrawSetProportional(CN3, 1); TextDrawSetShadow(CN3, 1); TextDrawSetSelectable(CN3, 0); CN4 = TextDrawCreate(190.000000, 352.000000, "~b~~h~~h~~h~DISFRUTA"); TextDrawBackgroundColor(CN4, 255); TextDrawFont(CN4, 1); TextDrawLetterSize(CN4, 0.500000, 1.000000); TextDrawColor(CN4, -1); TextDrawSetOutline(CN4, 0); TextDrawSetProportional(CN4, 1); TextDrawSetShadow(CN4, 1); TextDrawSetSelectable(CN4, 0); CN5 = TextDrawCreate(458.000000, 430.000000, "Legends RP/DM - Servidor 1"); TextDrawBackgroundColor(CN5, 255); TextDrawFont(CN5, 1); TextDrawLetterSize(CN5, 0.250000, 1.200000); TextDrawColor(CN5, -1); TextDrawSetOutline(CN5, 0); TextDrawSetProportional(CN5, 1); TextDrawSetShadow(CN5, 1); MapaGTA = TextDrawCreate(325.000000, 13.000000, "samaps:map"); TextDrawBackgroundColor(MapaGTA, 255); TextDrawFont(MapaGTA, 4); TextDrawTextSize(MapaGTA, 310.000000, 324.000000); TextDrawColor(MapaGTA, 255); TextDrawSetOutline(MapaGTA, 0); TextDrawSetProportional(MapaGTA, 1); TextDrawSetShadow(MapaGTA, 1); TextDrawUseBox(MapaGTA, 1); TextDrawBoxColor(MapaGTA, 255); MapaGTA2 = TextDrawCreate(329.000000, 37.000000, "samaps:map"); TextDrawBackgroundColor(MapaGTA2, 255); TextDrawFont(MapaGTA2, 4); TextDrawTextSize(MapaGTA2, 302.000000, 295.000000); TextDrawColor(MapaGTA2, -1); TextDrawSetOutline(MapaGTA2, 0); TextDrawSetProportional(MapaGTA2, 1); TextDrawSetShadow(MapaGTA2, 1); TextDrawUseBox(MapaGTA2, 1); TextDrawBoxColor(MapaGTA2, 124); MapaGTA3 = TextDrawCreate(333.000000, 16.000000, "GPS"); TextDrawLetterSize(MapaGTA3, 0.579999, 1.800000); TextDrawAlignment(MapaGTA3, 1); TextDrawColor(MapaGTA3, -1); TextDrawSetShadow(MapaGTA3, 1); TextDrawSetOutline(MapaGTA3, 0); TextDrawBackgroundColor(MapaGTA3, 255); TextDrawFont(MapaGTA3, 2); TextDrawSetProportional(MapaGTA3, 1); MapaGTA4 = TextDrawCreate(457.000000, 23.000000, "Usa"); TextDrawLetterSize(MapaGTA4, 0.259999, 0.699998); TextDrawAlignment(MapaGTA4, 1); TextDrawColor(MapaGTA4, -1); TextDrawSetShadow(MapaGTA4, 1); TextDrawSetOutline(MapaGTA4, 0); TextDrawBackgroundColor(MapaGTA4, 255); TextDrawFont(MapaGTA4, 2); TextDrawSetProportional(MapaGTA4, 1); MapaGTA5 = TextDrawCreate(479.000000, 23.000000, "/ocultar gps"); TextDrawLetterSize(MapaGTA5, 0.260000, 0.699999); TextDrawAlignment(MapaGTA5, 1); TextDrawColor(MapaGTA5, -624405505); TextDrawSetShadow(MapaGTA5, 1); TextDrawSetOutline(MapaGTA5, 0); TextDrawBackgroundColor(MapaGTA5, 255); TextDrawFont(MapaGTA5, 2); TextDrawSetProportional(MapaGTA5, 1); MapaGTA6 = TextDrawCreate(558.000000, 23.000000, "para cerrar"); TextDrawLetterSize(MapaGTA6, 0.260000, 0.699999); TextDrawAlignment(MapaGTA6, 1); TextDrawColor(MapaGTA6, -1); TextDrawSetShadow(MapaGTA6, 1); TextDrawSetOutline(MapaGTA6, 0); TextDrawBackgroundColor(MapaGTA6, 255); TextDrawFont(MapaGTA6, 2); TextDrawSetProportional(MapaGTA6, 1); MapaGTA7 = TextDrawCreate(333.000000, 16.000000, "PANTALLA"); TextDrawLetterSize(MapaGTA7, 0.579999, 1.800000); TextDrawAlignment(MapaGTA7, 1); TextDrawColor(MapaGTA7, -1); TextDrawSetShadow(MapaGTA7, 1); TextDrawSetOutline(MapaGTA7, 0); TextDrawBackgroundColor(MapaGTA7, 255); TextDrawFont(MapaGTA7, 2); TextDrawSetProportional(MapaGTA7, 1); MapaGTA8 = TextDrawCreate(479.000000, 23.000000, "/ocultar pantalla"); TextDrawLetterSize(MapaGTA8, 0.260000, 0.699999); TextDrawAlignment(MapaGTA8, 1); TextDrawColor(MapaGTA8, -624405505); TextDrawSetShadow(MapaGTA8, 1); TextDrawSetOutline(MapaGTA8, 0); TextDrawBackgroundColor(MapaGTA8, 255); TextDrawFont(MapaGTA8, 2); TextDrawSetProportional(MapaGTA8, 1); for(new i = 0; i < MAX_PLAYERS; i++) { TAXIMET[i] = TextDrawCreate(378.000000, 360.000000, "Taximetro"); TextDrawBackgroundColor(TAXIMET[i], 255); TextDrawFont(TAXIMET[i], 1); TextDrawLetterSize(TAXIMET[i], 0.500000, 1.000000); TextDrawColor(TAXIMET[i], -1); TextDrawSetOutline(TAXIMET[i], 0); TextDrawSetProportional(TAXIMET[i], 1); TextDrawSetShadow(TAXIMET[i], 1); TextDrawUseBox(TAXIMET[i], 1); TextDrawBoxColor(TAXIMET[i], 255); TextDrawTextSize(TAXIMET[i], 494.000000, 230.000000); TAXIMET2[i] = TextDrawCreate(470.000000, 360.000000, "$0"); TextDrawBackgroundColor(TAXIMET2[i], 255); TextDrawFont(TAXIMET2[i], 1); TextDrawLetterSize(TAXIMET2[i], 0.500000, 1.000000); TextDrawColor(TAXIMET2[i], -1); TextDrawSetOutline(TAXIMET2[i], 0); TextDrawSetProportional(TAXIMET2[i], 1); TextDrawSetShadow(TAXIMET2[i], 1); // Velocimetro y Taximetro santiago1[i] = TextDrawCreate(620.447937, 337.500030, "usebox"); TextDrawLetterSize(santiago1[i], 0.000000, 4.609256); TextDrawTextSize(santiago1[i], 539.610473, 0.000000); TextDrawAlignment(santiago1[i], 1); TextDrawColor(santiago1[i], 0); TextDrawUseBox(santiago1[i], 1); TextDrawBoxColor(santiago1[i], 0x0B0B0BAA); TextDrawSetShadow(santiago1[i], 1); TextDrawSetOutline(santiago1[i], 0); TextDrawFont(santiago1[i], 0); santiago2[i] = TextDrawCreate(620.447998, 384.750000, "usebox"); TextDrawLetterSize(santiago2[i], 0.000000, 4.544444); TextDrawTextSize(santiago2[i], 539.610534, 0.000000); TextDrawAlignment(santiago2[i], 1); TextDrawColor(santiago2[i], -1); TextDrawUseBox(santiago2[i], 1); TextDrawBoxColor(santiago2[i], 0x0B0B0BAA); TextDrawSetShadow(santiago2[i], 0); TextDrawSetOutline(santiago2[i], 0); TextDrawFont(santiago2[i], 0); santiago3[i] = TextDrawCreate(588.930725, 404.833251, "KM/h"); TextDrawLetterSize(santiago3[i], 0.321155, 0.958333); TextDrawAlignment(santiago3[i], 1); TextDrawColor(santiago3[i], -1); TextDrawSetShadow(santiago3[i], 0); TextDrawSetOutline(santiago3[i], 1); TextDrawBackgroundColor(santiago3[i], 51); TextDrawFont(santiago3[i], 1); TextDrawSetProportional(santiago3[i], 1); santiago4[i] = TextDrawCreate(549.106384, 384.416839, "Velocimetro"); TextDrawLetterSize(santiago4[i], 0.302412, 1.308332); TextDrawAlignment(santiago4[i], 1); TextDrawColor(santiago4[i], -1); TextDrawSetShadow(santiago4[i], 0); TextDrawSetOutline(santiago4[i], 1); TextDrawBackgroundColor(santiago4[i], 51); TextDrawFont(santiago4[i], 1); TextDrawSetProportional(santiago4[i], 1); santiago5[i] = TextDrawCreate(558.008972, 399.583282, "0"); TextDrawLetterSize(santiago5[i], 0.449999, 1.600000); TextDrawAlignment(santiago5[i], 1); TextDrawColor(santiago5[i], -1); TextDrawSetShadow(santiago5[i], 0); TextDrawSetOutline(santiago5[i], 1); TextDrawBackgroundColor(santiago5[i], 51); TextDrawFont(santiago5[i], 1); TextDrawSetProportional(santiago5[i], 1); santiago6[i] = TextDrawCreate(546.296081, 337.166625, "Combustible"); TextDrawLetterSize(santiago6[i], 0.321156, 1.424999); TextDrawAlignment(santiago6[i], 1); TextDrawColor(santiago6[i], -1); TextDrawSetShadow(santiago6[i], 0); TextDrawSetOutline(santiago6[i], 1); TextDrawBackgroundColor(santiago6[i], 51); TextDrawFont(santiago6[i], 1); TextDrawSetProportional(santiago6[i], 1); santiago7[i] = TextDrawCreate(548.638305, 352.333374, "0/100"); TextDrawLetterSize(santiago7[i], 0.449999, 1.600000); TextDrawAlignment(santiago7[i], 1); TextDrawColor(santiago7[i], -1); TextDrawSetShadow(santiago7[i], 0); TextDrawSetOutline(santiago7[i], 1); TextDrawBackgroundColor(santiago7[i], 51); TextDrawFont(santiago7[i], 1); TextDrawSetProportional(santiago7[i], 1); textbarrahambre[i] = TextDrawCreate(547.218566, 25.033311, "_"); TextDrawLetterSize(textbarrahambre[i], 0.391097, 0.520832); TextDrawTextSize(textbarrahambre[i], 607.000000, -14.590237); TextDrawAlignment(textbarrahambre[i], 1); TextDrawColor(textbarrahambre[i], -1345320192); TextDrawUseBox(textbarrahambre[i], 1); TextDrawBoxColor(textbarrahambre[i], 255); TextDrawSetShadow(textbarrahambre[i], 0); TextDrawBackgroundColor(textbarrahambre[i], 255); TextDrawFont(textbarrahambre[i], 1); TextDrawSetProportional(textbarrahambre[i], 0); textbarrased[i] = TextDrawCreate(547.218383, 36.116630, "_"); TextDrawLetterSize(textbarrased[i], 0.391097, 0.520832); TextDrawTextSize(textbarrased[i], 607.000000, -14.590237); TextDrawAlignment(textbarrased[i], 1); TextDrawColor(textbarrased[i], -1345320192); TextDrawUseBox(textbarrased[i], 1); TextDrawBoxColor(textbarrased[i], 255); TextDrawSetShadow(textbarrased[i], 0); TextDrawBackgroundColor(textbarrased[i], 255); TextDrawFont(textbarrased[i], 1); TextDrawSetProportional(textbarrased[i], 0); TiempoBaul[i] = CreateProgressBar(256.00, 289.00, 127.50, 4.19, 16711935, 100.0); Barrased[i] = CreateProgressBar(548.00, 36.00, 58.50, 4.50, 0x1784C9FF, 100.0);//Sed Barrahambre[i] = CreateProgressBar(548.00, 25.00, 58.50, 4.19, 0xFF7800FF, 100.0);//Hambre XP[i] = CreateProgressBar(1.00, 444.00, 638.50, 2.50, -1802267649, 100.0); speedbar[i] = CreateProgressBar(546.00, 419.00, 67.50, 2.50, -8978177, 100.0); speedbar2[i] = CreateProgressBar(546.00, 374.00, 67.50, 2.50, 10457087, 100.0); Descargando[i] = CreateProgressBar(260.00, 355.00, 120.50, 3.20, 16711935, 100.0); //cosas //fincosa } }
CargarHouses(); CargarFacciones(); CargarUsers(); |
The problem is:
The Progress Bars. You 're trying to create more than 682 Progress Bars, with old Progress Bar Include (The original Include by Toribio - this include use Global Textdraws to make bars, here is the Problem, max bars limit is 682). To solve it, you would update the Progress Bars, to [HLF]Southclaw include version (this include use Per-player Textdraws, so they will solve your Crash...) You need to download this: ProgressBar2 include (by [HLF]Southclaw) samp-logger include (by [HLF]Southclaw) YSI 4.x or 5.x (by ******, Zeex, and more...) |