19.07.2018, 22:30
Hi, їwhat this reason of my problem? help me please and thanks
public cargartodo
#undef MAX_PLAYERS
#define MAX_PLAYERS (150)
Код:
[04:36:42] [debug] Run time error 4: "Array index out of bounds" [04:36:42] [debug] Accessing element at index 682 past array upper bound 681 [04:36:42] [debug] AMX backtrace: [04:36:42] [debug] #0 00002aa0 in ?? (1065353216, 1138622464, 1142923264, 1075838976, -1802267649, 1120403456) from OZ.amx [04:36:42] [debug] #1 00084cf8 in public cargartodo () from OZ.amx
#undef MAX_PLAYERS
#define MAX_PLAYERS (150)
Код:
forward cargartodo(); public cargartodo() { CargarFacciones(); CargarUsers(); CargarPlantas(); for(new i = 0; i < MAX_PLAYERS; i++) { NotiConnect[i][0] = TextDrawCreate(13.000000, 265.911041, "box"); TextDrawLetterSize(NotiConnect[i][0], 0.000000, 4.799999); TextDrawTextSize(NotiConnect[i][0], 182.000000, 0.000000); TextDrawAlignment(NotiConnect[i][0], 1); TextDrawColor(NotiConnect[i][0], -1); TextDrawUseBox(NotiConnect[i][0], 1); TextDrawBoxColor(NotiConnect[i][0], 255); TextDrawSetShadow(NotiConnect[i][0], 0); TextDrawSetOutline(NotiConnect[i][0], 0); TextDrawBackgroundColor(NotiConnect[i][0], 255); TextDrawFont(NotiConnect[i][0], 0); TextDrawSetProportional(NotiConnect[i][0], 1); TextDrawSetShadow(NotiConnect[i][0], 0); NotiConnect[i][1] = TextDrawCreate(99.500000, 295.777862, "~>~SE_HA_CONECTADO"); TextDrawLetterSize(NotiConnect[i][1], 0.217000, 0.927999); TextDrawAlignment(NotiConnect[i][1], 1); TextDrawColor(NotiConnect[i][1], 8388863); TextDrawSetShadow(NotiConnect[i][1], 0); TextDrawSetOutline(NotiConnect[i][1], 0); TextDrawBackgroundColor(NotiConnect[i][1], 255); TextDrawFont(NotiConnect[i][1], 1); TextDrawSetProportional(NotiConnect[i][1], 1); TextDrawSetShadow(NotiConnect[i][1], 0);* TDEditor_TD[i][0] = TextDrawCreate(199.500000, 258.687500, "box"); TextDrawLetterSize(TDEditor_TD[i][0], 0.000000, 7.449995); TextDrawTextSize(TDEditor_TD[i][0], 420.000000, 0.000000); TextDrawAlignment(TDEditor_TD[i][0], 1); TextDrawColor(TDEditor_TD[i][0], -1); TextDrawUseBox(TDEditor_TD[i][0], 1); TextDrawBoxColor(TDEditor_TD[i][0], 255); TextDrawSetShadow(TDEditor_TD[i][0], 0); TextDrawSetOutline(TDEditor_TD[i][0], 0); TextDrawBackgroundColor(TDEditor_TD[i][0], 255); TextDrawFont(TDEditor_TD[i][0], 1); TextDrawSetProportional(TDEditor_TD[i][0], 1); TextDrawSetShadow(TDEditor_TD[i][0], 0); TDEditor_TD[i][1] = TextDrawCreate(178.500000, 241.187500, "ld_beat:cring"); TextDrawLetterSize(TDEditor_TD[i][1], 0.000000, 0.000000); TextDrawTextSize(TDEditor_TD[i][1], 78.000000, 65.000000); TextDrawAlignment(TDEditor_TD[i][1], 1); TextDrawColor(TDEditor_TD[i][1], -1); TextDrawSetShadow(TDEditor_TD[i][1], 0); TextDrawSetOutline(TDEditor_TD[i][1], 0); TextDrawBackgroundColor(TDEditor_TD[i][1], 255); TextDrawFont(TDEditor_TD[i][1], 4); TextDrawSetProportional(TDEditor_TD[i][1], 0); TextDrawSetShadow(TDEditor_TD[i][1], 0); TDEditor_TD[i][2] = TextDrawCreate(201.500000, 288.437500, "-"); TextDrawLetterSize(TDEditor_TD[i][2], 16.233995, 0.615625); TextDrawAlignment(TDEditor_TD[i][2], 1); TextDrawColor(TDEditor_TD[i][2], -1768533761); TextDrawSetShadow(TDEditor_TD[i][2], 0); TextDrawSetOutline(TDEditor_TD[i][2], 0); TextDrawBackgroundColor(TDEditor_TD[i][2], 255); TextDrawFont(TDEditor_TD[i][2], 1); TextDrawSetProportional(TDEditor_TD[i][2], 1); TextDrawSetShadow(TDEditor_TD[i][2], 0); TDEditor_TD[i][3] = TextDrawCreate(207.400177, 261.913604, "10"); TextDrawLetterSize(TDEditor_TD[i][3], 0.572500, 2.405000); TextDrawAlignment(TDEditor_TD[i][3], 1); TextDrawColor(TDEditor_TD[i][3], -1); TextDrawSetShadow(TDEditor_TD[i][3], 0); TextDrawSetOutline(TDEditor_TD[i][3], 0); TextDrawBackgroundColor(TDEditor_TD[i][3], 255); TextDrawFont(TDEditor_TD[i][3], 1); TextDrawSetProportional(TDEditor_TD[i][3], 1); TextDrawSetShadow(TDEditor_TD[i][3], 0); TDEditor_TD[i][4] = TextDrawCreate(249.500000, 266.125000, "Texto_Titulo"); TextDrawLetterSize(TDEditor_TD[i][4], 0.630500, 2.208125); TextDrawAlignment(TDEditor_TD[i][4], 1); TextDrawColor(TDEditor_TD[i][4], -892709121); TextDrawSetShadow(TDEditor_TD[i][4], 0); TextDrawSetOutline(TDEditor_TD[i][4], 1); TextDrawBackgroundColor(TDEditor_TD[i][4], 255); TextDrawFont(TDEditor_TD[i][4], 0); TextDrawSetProportional(TDEditor_TD[i][4], 1); TextDrawSetShadow(TDEditor_TD[i][4], 0); TDEditor_TD[i][5] = TextDrawCreate(209.000000, 301.562500, "Texto_Mensaje"); TextDrawLetterSize(TDEditor_TD[i][5], 0.371999, 1.565000); TextDrawAlignment(TDEditor_TD[i][5], 1); TextDrawColor(TDEditor_TD[i][5], -1); TextDrawSetShadow(TDEditor_TD[i][5], 0); TextDrawSetOutline(TDEditor_TD[i][5], 0); TextDrawBackgroundColor(TDEditor_TD[i][5], 255); TextDrawFont(TDEditor_TD[i][5], 1); TextDrawSetProportional(TDEditor_TD[i][5], 1); TextDrawSetShadow(TDEditor_TD[i][5], 0); CN[i] = TextDrawCreate(651.000000, -20.000000, "Nuevo Textdraw"); TextDrawBackgroundColor(CN[i], 255); TextDrawFont(CN[i], 1); TextDrawLetterSize(CN[i], 0.500000, 8.099998); TextDrawColor(CN[i], -1); TextDrawSetOutline(CN[i], 0); TextDrawSetProportional(CN[i], 1); TextDrawSetShadow(CN[i], 1); TextDrawUseBox(CN[i], 1); TextDrawBoxColor(CN[i], 255); TextDrawTextSize(CN[i], -23.000000, 23.000000); CN2[i] = TextDrawCreate(677.000000, 328.000000, "Nuevo Textdraw"); TextDrawBackgroundColor(CN2[i], 255); TextDrawFont(CN2[i], 1); TextDrawLetterSize(CN2[i], 0.939999, 11.999999); TextDrawColor(CN2[i], -1); TextDrawSetOutline(CN2[i], 0); TextDrawSetProportional(CN2[i], 1); TextDrawSetShadow(CN2[i], 1); TextDrawUseBox(CN2[i], 1); TextDrawBoxColor(CN2[i], 255); TextDrawTextSize(CN2[i], -5.000000, 4.000000); CN3[i] = TextDrawCreate(125.000000, 60.000000, "Test ROLEPLAY"); TextDrawBackgroundColor(CN3[i], 255); TextDrawFont(CN3[i], 3); TextDrawLetterSize(CN3[i], 1.120000, 1.399999); TextDrawColor(CN3[i], -1); TextDrawSetOutline(CN3[i], 0); TextDrawSetProportional(CN3[i], 1); TextDrawSetShadow(CN3[i], 1); TextDrawSetSelectable(CN3[i], 0); CN4[i] = TextDrawCreate(190.000000, 352.000000, "~b~~h~~h~~h~WEB: Test"); TextDrawBackgroundColor(CN4[i], 255); TextDrawFont(CN4[i], 1); TextDrawLetterSize(CN4[i], 0.500000, 1.000000); TextDrawColor(CN4[i], -1); TextDrawSetOutline(CN4[i], 0); TextDrawSetProportional(CN4[i], 1); TextDrawSetShadow(CN4[i], 1); TextDrawSetSelectable(CN4[i], 0); CN5[i] = TextDrawCreate(448.799987, 427.093566, "www.Test.net - Servidor RP 1"); TextDrawBackgroundColor(CN5[i], 51); TextDrawLetterSize(CN5[i], 0.239600, 1.525333); TextDrawColor(CN5[i], -1); TextDrawFont(CN5[i], 1); TextDrawSetProportional(CN5[i], 1); TextDrawSetOutline(CN5[i], 1); TextDrawAlignment(CN5[i], 1); TextDrawSetShadow(CN5[i], 0); TextDrawSetSelectable(CN5[i], 0); MapaGTA[i] = TextDrawCreate(325.000000, 13.000000, "samaps:map"); TextDrawBackgroundColor(MapaGTA[i], 255); TextDrawFont(MapaGTA[i], 4); TextDrawTextSize(MapaGTA[i], 310.000000, 324.000000); TextDrawColor(MapaGTA[i], 255); TextDrawSetOutline(MapaGTA[i], 0); TextDrawSetProportional(MapaGTA[i], 1); TextDrawSetShadow(MapaGTA[i], 1); TextDrawUseBox(MapaGTA[i], 1); TextDrawBoxColor(MapaGTA[i], 255); MapaGTA2[i] = TextDrawCreate(329.000000, 37.000000, "samaps:map"); TextDrawBackgroundColor(MapaGTA2[i], 255); TextDrawFont(MapaGTA2[i], 4); TextDrawTextSize(MapaGTA2[i], 302.000000, 295.000000); TextDrawColor(MapaGTA2[i], -1); TextDrawSetOutline(MapaGTA2[i], 0); TextDrawSetProportional(MapaGTA2[i], 1); TextDrawSetShadow(MapaGTA2[i], 1); TextDrawUseBox(MapaGTA2[i], 1); TextDrawBoxColor(MapaGTA2[i], 124); MapaGTA3[i] = TextDrawCreate(333.000000, 16.000000, "GPS"); TextDrawLetterSize(MapaGTA3[i], 0.579999, 1.800000); TextDrawAlignment(MapaGTA3[i], 1); TextDrawColor(MapaGTA3[i], -1); TextDrawSetShadow(MapaGTA3[i], 1); TextDrawSetOutline(MapaGTA3[i], 0); TextDrawBackgroundColor(MapaGTA3[i], 255); TextDrawFont(MapaGTA3[i], 2); TextDrawSetProportional(MapaGTA3[i], 1); MapaGTA4[i] = TextDrawCreate(457.000000, 23.000000, "Usa"); TextDrawLetterSize(MapaGTA4[i], 0.259999, 0.699998); TextDrawAlignment(MapaGTA4[i], 1); TextDrawColor(MapaGTA4[i], -1); TextDrawSetShadow(MapaGTA4[i], 1); TextDrawSetOutline(MapaGTA4[i], 0); TextDrawBackgroundColor(MapaGTA4[i], 255); TextDrawFont(MapaGTA4[i], 2); TextDrawSetProportional(MapaGTA4[i], 1); MapaGTA5[i] = TextDrawCreate(479.000000, 23.000000, "/ocultar gps"); TextDrawLetterSize(MapaGTA5[i], 0.260000, 0.699999); TextDrawAlignment(MapaGTA5[i], 1); TextDrawColor(MapaGTA5[i], -624405505); TextDrawSetShadow(MapaGTA5[i], 1); TextDrawSetOutline(MapaGTA5[i], 0); TextDrawBackgroundColor(MapaGTA5[i], 255); TextDrawFont(MapaGTA5[i], 2); TextDrawSetProportional(MapaGTA5[i], 1); MapaGTA6[i] = TextDrawCreate(558.000000, 23.000000, "para cerrar"); TextDrawLetterSize(MapaGTA6[i], 0.260000, 0.699999); TextDrawAlignment(MapaGTA6[i], 1); TextDrawColor(MapaGTA6[i], -1); TextDrawSetShadow(MapaGTA6[i], 1); TextDrawSetOutline(MapaGTA6[i], 0); TextDrawBackgroundColor(MapaGTA6[i], 255); TextDrawFont(MapaGTA6[i], 2); TextDrawSetProportional(MapaGTA6[i], 1); MapaGTA7[i] = TextDrawCreate(333.000000, 16.000000, "PANTALLA"); TextDrawLetterSize(MapaGTA7[i], 0.579999, 1.800000); TextDrawAlignment(MapaGTA7[i], 1); TextDrawColor(MapaGTA7[i], -1); TextDrawSetShadow(MapaGTA7[i], 1); TextDrawSetOutline(MapaGTA7[i], 0); TextDrawBackgroundColor(MapaGTA7[i], 255); TextDrawFont(MapaGTA7[i], 2); TextDrawSetProportional(MapaGTA7[i], 1); MapaGTA8[i] = TextDrawCreate(479.000000, 23.000000, "/ocultar pantalla"); TextDrawLetterSize(MapaGTA8[i], 0.260000, 0.699999); TextDrawAlignment(MapaGTA8[i], 1); TextDrawColor(MapaGTA8[i], -624405505); TextDrawSetShadow(MapaGTA8[i], 1); TextDrawSetOutline(MapaGTA8[i], 0); TextDrawBackgroundColor(MapaGTA8[i], 255); TextDrawFont(MapaGTA8[i], 2); TextDrawSetProportional(MapaGTA8[i], 1); 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); 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); CarreraT[i][0] = TextDrawCreate(138.875000, 339.833465, "usebox"); TextDrawLetterSize(CarreraT[i][0], 0.000000, 9.340736); TextDrawTextSize(CarreraT[i][0], 36.125000, 0.000000); TextDrawAlignment(CarreraT[i][0], 1); TextDrawColor(CarreraT[i][0], 0); TextDrawUseBox(CarreraT[i][0], true); TextDrawBoxColor(CarreraT[i][0], -1); TextDrawSetShadow(CarreraT[i][0], 0); TextDrawSetOutline(CarreraT[i][0], 0); TextDrawFont(CarreraT[i][0], 0); CarreraT[i][1] = TextDrawCreate(137.000000, 341.583312, "usebox"); TextDrawLetterSize(CarreraT[i][1], 0.000000, 8.951854); TextDrawTextSize(CarreraT[i][1], 37.375000, 0.000000); TextDrawAlignment(CarreraT[i][1], 1); TextDrawColor(CarreraT[i][1], 0); TextDrawUseBox(CarreraT[i][1], true); TextDrawBoxColor(CarreraT[i][1], 255); TextDrawSetShadow(CarreraT[i][1], 0); TextDrawSetOutline(CarreraT[i][1], 0); TextDrawFont(CarreraT[i][1], 0); CarreraT[i][2] = TextDrawCreate(48.750000, 350.583312, "-"); TextDrawLetterSize(CarreraT[i][2], 5.385008, 0.789165); TextDrawAlignment(CarreraT[i][2], 1); TextDrawColor(CarreraT[i][2], -1); TextDrawSetShadow(CarreraT[i][2], -3); TextDrawSetOutline(CarreraT[i][2], 0); TextDrawBackgroundColor(CarreraT[i][2], 51); TextDrawFont(CarreraT[i][2], 2); TextDrawSetProportional(CarreraT[i][2], 1); CarreraT[i][3] = TextDrawCreate(50.625000, 341.833343, "Vuelta: 0/5"); TextDrawLetterSize(CarreraT[i][3], 0.285624, 0.795000); TextDrawAlignment(CarreraT[i][3], 1); TextDrawColor(CarreraT[i][3], -1); TextDrawSetShadow(CarreraT[i][3], 0); TextDrawSetOutline(CarreraT[i][3], 1); TextDrawBackgroundColor(CarreraT[i][3], 51); TextDrawFont(CarreraT[i][3], 2); TextDrawSetProportional(CarreraT[i][3], 1); CarreraT[i][4] = TextDrawCreate(49.375000, 358.750152, "POSICION"); TextDrawLetterSize(CarreraT[i][4], 0.381249, 1.308333); TextDrawAlignment(CarreraT[i][4], 1); TextDrawColor(CarreraT[i][4], -1); TextDrawSetShadow(CarreraT[i][4], 0); TextDrawSetOutline(CarreraT[i][4], 1); TextDrawBackgroundColor(CarreraT[i][4], 51); TextDrawFont(CarreraT[i][4], 2); TextDrawSetProportional(CarreraT[i][4], 1); CarreraT[i][5] = TextDrawCreate(71.250000, 368.666687, "0/0"); TextDrawLetterSize(CarreraT[i][5], 0.406249, 3.408334); TextDrawAlignment(CarreraT[i][5], 1); TextDrawColor(CarreraT[i][5], -1); TextDrawSetShadow(CarreraT[i][5], 0); TextDrawSetOutline(CarreraT[i][5], 1); TextDrawBackgroundColor(CarreraT[i][5], 51); TextDrawFont(CarreraT[i][5], 2); TextDrawSetProportional(CarreraT[i][5], 1); CarreraT[i][6] = TextDrawCreate(46.875000, 409.500061, "-"); TextDrawLetterSize(CarreraT[i][6], 5.718753, -0.995832); TextDrawAlignment(CarreraT[i][6], 1); TextDrawColor(CarreraT[i][6], -1); TextDrawSetShadow(CarreraT[i][6], 0); TextDrawSetOutline(CarreraT[i][6], 1); TextDrawBackgroundColor(CarreraT[i][6], 51); TextDrawFont(CarreraT[i][6], 2); TextDrawSetProportional(CarreraT[i][6], 1); CarreraT[i][7] = TextDrawCreate(66.250000, 408.333251, "0:0"); TextDrawLetterSize(CarreraT[i][7], 0.531250, 1.250000); TextDrawAlignment(CarreraT[i][7], 1); TextDrawColor(CarreraT[i][7], -1); TextDrawSetShadow(CarreraT[i][7], 0); TextDrawSetOutline(CarreraT[i][7], 2); TextDrawBackgroundColor(CarreraT[i][7], 51); TextDrawFont(CarreraT[i][7], 2); TextDrawSetProportional(CarreraT[i][7], 1); Barrased[i] = CreateProgressBar(548.00, 31.00, 57.50, 6.19, 0x008DF6FF, 100.0); Barrahambre[i] = CreateProgressBar(548.00, 20.00, 57.50, 6.19, -9830145, 100.0); 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); } return 1; }