Vesker20012
Умник
HTML:
[17:15:19] [debug] Run time error 4: "Array index out of bounds"
[17:15:19] [debug] Accessing element at index 1 past array upper bound 0
[17:15:19] [debug] AMX backtrace:
[17:15:19] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:21] [debug] Run time error 4: "Array index out of bounds"
[17:15:21] [debug] Accessing element at index 1 past array upper bound 0
[17:15:21] [debug] AMX backtrace:
[17:15:21] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:22] [debug] Run time error 4: "Array index out of bounds"
[17:15:22] [debug] Accessing element at index 1 past array upper bound 0
[17:15:22] [debug] AMX backtrace:
[17:15:22] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:23] [debug] Run time error 4: "Array index out of bounds"
[17:15:23] [debug] Accessing element at index 1 past array upper bound 0
[17:15:23] [debug] AMX backtrace:
[17:15:23] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:24] [debug] Run time error 4: "Array index out of bounds"
[17:15:24] [debug] Accessing element at index 1 past array upper bound 0
[17:15:24] [debug] AMX backtrace:
[17:15:24] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:25] [debug] Run time error 4: "Array index out of bounds"
[17:15:25] [debug] Accessing element at index 1 past array upper bound 0
[17:15:25] [debug] AMX backtrace:
[17:15:25] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:26] [debug] Run time error 4: "Array index out of bounds"
[17:15:26] [debug] Accessing element at index 1 past array upper bound 0
[17:15:26] [debug] AMX backtrace:
[17:15:26] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:27] [debug] Run time error 4: "Array index out of bounds"
[17:15:27] [debug] Accessing element at index 1 past array upper bound 0
[17:15:27] [debug] AMX backtrace:
[17:15:27] [debug] #0 001c867c in public MzCheck () from new.amx
[17:15:28] [debug] Run time error 4: "Array index out of bounds"
[17:15:28] [debug] Accessing element at index 1 past array upper bound 0
[17:15:28] [debug] AMX backtrace:
[17:15:28] [debug] #0 001c867c in public MzCheck () from new.amx
сама паблик
HTML:
public MzCheck() {
for(new i = 0; i < sizeof(MZInfo); i++) {
if(ZoneOnBattlem[i] == 1 && MZSafeTime[i] == 0) {
ZoneTimerm[i] -= 5;
if(ZoneTimerm[i] <= 0) {
for(new h = 0; h < sizeof(BizzInfo); h++) {
if(BizzInfo[h][bCapture] == 1) {
BizzInfo[h][bMafia] = BizzInfo[h][bMafia];
SendFamilyMessage(BizzInfo[h][bMafia],0x114D71AA, "Вам удалось отстоять свой бизнес");
BizzInfo[h][bCapture] = 0; } }
SendFamilyMessage(MZInfo[i][mNapad],COLOR_RED, "Вам не удалось взять под контроль новый бизнес");
startwar = 0;
ZoneOnBattlem[i] = 0;
ZoneTimerm[i] = 0;
GangZoneStopFlashForAll(zons); }
for(new x = 0; x < MAX_PLAYERS; x++) {
if(PlayerToKvadrat(x,328.755706, 2412.644531, 448.755706, 2564.644531)) {
new factionm;
if(PlayerInfo[x][pLeader] != 0) { factionm = PlayerInfo[x][pLeader]; }
else { factionm = PlayerInfo[x][pMember]; }
OnmZONE[i][factionm] ++; } }
new asd;
for(new x = 0; x < sizeof(FrakCDm); x++) {
if(OnmZONE[i][x] > 0 && IsInAllowedM(x)) asd++; }
if(asd == 1) {
for(new x = 0; x < sizeof(FrakCDm); x++) {
if(OnmZONE[i][x] > 0) {
new zx,zl;
zx = x;
zl = i;
if(MZInfo[i][mFrakVlad] == x) {
for(new h = 0; h < sizeof(BizzInfo); h++) {
if(BizzInfo[h][bCapture] == 1) {
BizzInfo[h][bMafia] = BizzInfo[h][bMafia];
SendFamilyMessage(BizzInfo[h][bMafia],0x114D71AA, "Вы отстояли свой бизнес");
BizzInfo[h][bCapture] = 0; } }
startwar = 0;
SendFamilyMessage(MZInfo[i][mNapad],COLOR_RED, "Вам не удалось завоевать ещё один бизнес"); }
else {
startwar = 0;
for(new h = 0; h < sizeof(BizzInfo); h++) {
new string[128];
if(BizzInfo[h][bCapture] == 1) {
format(string,sizeof(string), "Вы взяли под контроль Бизнес: %s", BizzInfo[h][bMessage]);
SendFamilyMessage(MZInfo[i][mNapad],0x114D71AA,string); } }
for(new h = 0; h < sizeof(BizzInfo); h++) {
if(BizzInfo[h][bCapture] == 1) {
SendFamilyMessage(BizzInfo[h][bMafia],COLOR_RED, "Вы потеряли контроль над одним из своих бизнесов");
BizzInfo[h][bMafia] = MZInfo[i][mNapad];
BizzInfo[h][bCapture] = 0; } } }
ZoneOnBattlem[zl] =0;
MZInfo[zl][mFrakVlad] = 0;
MZInfo[zl][mFrakVlad] = zx;
GangZoneStopFlashForAll(zons);
GangZoneHideForAll(zons);
GangZoneShowForAll(zons, 0xB2B2B2AA);
break; } } } } }
