03.03.2018, 02:22
I have tried a thousand and one ways to fix this crash that detects me and nothing, could someone help me? I would appreciate it for life.
Код:
[15:06:03] [debug] Run time error 4: "Array index out of bounds" [15:06:03] [debug] Attempted to read/write array element at index 65535 in array of size 100 [15:06:03] [debug] AMX backtrace: [15:06:03] [debug] #0 00416ba8 in severTimers () at C:\Users\Toledops\Desktop\port_1968\gamemodes\NS4.pwn:69077 [15:06:03] [debug] #1 004166e0 in public severTimers@_yT () at C:\Users\Toledops\Desktop\port_1968\gamemodes\NS4.pwn:69058
Код:
timer severTimers[1000]() { if(iAdverTimer >= 1) --iAdverTimer; foreach(Player, i) { SyncPlayerTime(i); if(IsPlayerConnected(i)) { if(Tied[i] > 0) TogglePlayerControllable(i, 0); if(GetPVarInt(i, "EMSAttempt") == -1) ApplyAnimation(i, "SWAT", "gnstwall_injurd", 4.0, 0, 1, 1, 1, 0, 1); if(CellTime[i] > 0) { if (CellTime[i] == cchargetime) { CellTime[i] = 1; if(Mobile[Mobile[i]] == i) { CallCost[i] = CallCost[i]+callcost; } } CellTime[i]++; if(Mobile[Mobile[i]] == -1 && CellTime[i] == 5) { if(IsPlayerConnected(Mobile[i])) { new called[MAX_PLAYER_NAME], string[96]; GetPlayerName(Mobile[i], called, sizeof(called)); format(string, sizeof(string), "* Telephone %s ring", called); ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } if(CellTime[i] == 0 && CallCost[i] > 0) { new string[24]; format(string, sizeof(string), "~w~Cost call %d",CallCost[i]); GameTextForPlayer(i, string, 5000, 1); GivePlayerCash(i, -CallCost[i]); CallCost[i] = 0; } for(new h = 0; h < sizeof(Points); h++) { if(IsPlayerInRangeOfPoint(i, 2.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz])){ if(Points[h][Type] == 3 && Info[i][pPot] < 3){ GameTextForPlayer(i, "hierba", 5000, 5); } else if(Points[h][Type] == 1 && GetPVarInt(i, "Packages") == 0){ GameTextForPlayer(i, "pieces.", 5000, 5); } else if(Points[h][Type] == 4){ GameTextForPlayer(i, "~w~drugs crack", 5000, 5); } else if(Points[h][Type] == 5){ GameTextForPlayer(i, "~w~drugs hierba", 5000, 5); } } } if(IsPlayerInAnyVehicle(i)) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(i, 0); else if(Info[i][pWeapons][4] == 0) SetPlayerArmedWeapon(i, 0); else SetPlayerArmedWeapon(i, 29); } if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && JetPack[i] == 0 && Info[i][pAdministrador] < 4) { new string[74 + MAX_PLAYER_NAME]; format( string, sizeof( string ), "{AA3333}Warning{FFFF00}: %s (ID %d) cheat jetpack .", GetPlayerNameEx(i), i); ABroadCast( COLOR_YELLOW, string, 2 ); format(string, sizeof(string), "%s (ID %d) es posible que use Cheat de JetPack.", GetPlayerNameEx(i), i); Log("logs/hack.log", string); } } } }