SA-MP Forums Archive
Ошибки крашдетектера. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Русский/Russian (https://sampforum.blast.hk/forumdisplay.php?fid=32)
+---- Thread: Ошибки крашдетектера. (/showthread.php?tid=565897)



Ошибки крашдетектера. - gensek4 - 02.03.2015

PHP код:
[02:59:21] [debug] Run time error 4: "Array index out of bounds"
[02:59:21] [debug]  Accessing element at index 52 past array upper bound 46
[02:59:21] [debug] AMX backtrace:
[
02:59:21] [debug] #0 00220c2c in AntiCheat (playerid=8) at C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\gamemodes\edit.pwn:25023
[02:59:21] [debug] #1 00134348 in Fresh () at C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\gamemodes\edit.pwn:19323
[02:59:21] [debug] #2 001e6f78 in public TimerUpdate () at C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\gamemodes\edit.pwn:21731 
stock AntiCheat:
PHP код:
stock AntiCheat(playerid)
{
    if(
gPlayerLogged[playerid] == 0 || IsPlayerNPC(playerid) || !IsPlayerConnected(playerid)) return true;
    new 
Float:distance2 = 400;
    new 
Float:currentPos[ 3 ], Float:distance;
     
GetPlayerPos( playerid, currentPos[ 0 ], currentPos[ 1 ], currentPos[ 2 ] );
      if(
IsPlayerInAnyVehicle(playerid)) distance2 = 120;
      else 
distance2 = 80;
    
distance = floatround( GetPlayerDistanceFromPoint( playerid, PlayerInfo[ playerid ][ pPos_x ], PlayerInfo[ playerid ][ pPos_y ], PlayerInfo[ playerid ][ pPos_z] ) );
    if(
GetPVarInt(playerid, "AntiBreik") == 0 && !GetPVarInt(playerid,"AutoShop") && GetPVarInt(playerid, "AFK_Time") < 2 && PlayerInfo[playerid][pAlcoInvenxua] == 0)
    {
         if(
distance > distance2) CheatKick(playerid,7);
    }
    if(
GetPVarInt(playerid, "AntiBreik") == 0)
    {
        
PlayerInfo[ playerid ][ pPos_x ] = currentPos[ 0 ];
         
PlayerInfo[ playerid ][ pPos_y ] = currentPos[ 1 ];
          
PlayerInfo[ playerid ][ pPos_z ] = currentPos[ 2 ];
    }
    if(
GetPlayerWeapon(playerid) > 0 && GetPlayerAmmo(playerid) == 0 && Weapons[playerid][GetPlayerWeapon(playerid)] == 0 && GetPVarInt(playerid, "GunCheck") < gettime()) CheatKick(playerid,8); // на эту строчку ругается (25023)
    
if(GetPVarInt(playerid, "GunCheck") < gettime())
    {
        new 
weaponid, ammo;
        for (new 
it = 1; it < 11; it++)
        {
            
GetPlayerWeaponData(playerid, it, weaponid, ammo);
            if(
ammo > Weapons[playerid][weaponid]) CheatKick(playerid,8);
            else if(
ammo < Weapons[playerid][weaponid]) Weapons[playerid][weaponid] = ammo;
        }
    }
    new 
Float: Heal;
    if(
GetPVarInt(playerid,"HealthSetTime") <= 0)
    {
           
GetPlayerHealth(playerid, Heal);
           if(
PlayerHealth[playerid] < Heal) SetPlayerHealth(playerid, PlayerHealth[playerid]);
           else 
PlayerHealth[playerid] = Heal;
    }
    else 
SetPVarInt(playerid,"HealthSetTime",GetPVarInt(playerid,"HealthSetTime")-1);
    if(
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) CheatKick(playerid,9);
    if((
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) && PlayerInfo[playerid][pAlcoInvenxua] <= 0) return CheatKick(playerid,1);
    new 
Float:AntibronNew;
    
GetPlayerArmour(playerid, AntibronNew);
    if(
PlayerInfo[playerid][pMember] <= 0 && AntibronNew > 50) { SetPlayerArmourAC(playerid, 0); }
    if(
IsPlayerInVehicle(playerid,GetPlayerVehicleID(playerid)) && (GetPlayerWeapon(playerid) == WEAPON_DEAGLE || GetPlayerWeapon(playerid) == WEAPON_SHOTGSPA || GetPlayerWeapon(playerid) == WEAPON_SAWEDOFF || GetPlayerWeapon(playerid) == WEAPON_MINIGUN || GetPlayerWeapon(playerid) == WEAPON_MP5 )) SetPlayerArmedWeapon(playerid,0);
    
iNewPlayerAmmo[playerid] = GetPlayerAmmo(playerid);
    if(
iNewPlayerAmmo[playerid] != iPlayerAmmo[playerid])
    {
        
OnPlayerAmmoChange(playerid, iNewPlayerAmmo[playerid], iPlayerAmmo[playerid]); SetPVarInt(playerid, "GunCheck", gettime() + 2);
        
iPlayerAmmo[playerid] = iNewPlayerAmmo[playerid];
    }
    new 
animlib[30], animname[30];
    
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
    if(
SpeedVehicle(playerid) > 140 && strcmp(animlib, "SWIM", true) == 0 && strcmp(animname, "SWIM_crawl", true) == 0 && PlayerInfo[playerid][pAlcoInvenxua] == 0 && !IsPlayerInAnyVehicle(playerid)) CheatKick(playerid,2);
    if(
SpeedVehicle(playerid) > 179 && strcmp(animlib, "PARACHUTE", true) == 0 && strcmp(animname, "FALL_SKYDIVE_ACCEL", true) == 0 && PlayerInfo[playerid][pAlcoInvenxua] == 0 && !IsPlayerInAnyVehicle(playerid)) CheatKick(playerid,3);
    new 
tttgtg;
    new 
str[300];
    
tttgtg = GetPlayerAmmo(SpecAd[playerid]);
    new 
Float:hppp;
    new 
Float:aermor;
    new 
Float:health;
    
GetPlayerArmour(SpecAd[playerid],aermor);
    
GetPlayerHealth(SpecAd[playerid],hppp);
    
GetVehicleHealth(GetPlayerVehicleID(SpecAd[playerid]),health);
    new 
fps = 40 + random(60);
    if(
PlayerInfo[playerid][pAlcoInvenxua] >= 1)
    {
        if(
IsPlayerInAnyVehicle(SpecAd[playerid]))
        {
            new 
playersip[20];
            
GetPlayerIp(SpecAd[playerid],playersip,sizeof(playersip));
            
format(str, sizeof(str),"~g~%s %i~n~~n~~w~Number: %i~n~IP: %s~n~~n~Ping: %i~n~~r~Speed: ~w~%i~n~~g~Armour: ~w~%.0f~n~~g~Health: ~w~%.0f~n~Warns: %i~n~~b~Ammo: ~w~%i~n~~n~~g~$ ~w~Cash: ~g~%i~n~~g~$ ~w~Bank: ~g~%i~n~~n~~r~Scan FPS: %i~n~Car HP: %.0f",PlayerInfo[SpecAd[playerid]][pNames],
            
SpecAd[playerid],PlayerInfo[SpecAd[playerid]][pPnumber],playersip,GetPlayerPing(SpecAd[playerid]),SpeedVehicle(SpecAd[playerid]),aermor,hppp,PlayerInfo[SpecAd[playerid]][pWarns],tttgtg,PlayerInfo[SpecAd[playerid]][pCash],PlayerInfo[SpecAd[playerid]][pBank],fps,health);
            
PlayerTextDrawSetString(playerid,FULLRECON[playerid],str);
        }
        if(!
IsPlayerInAnyVehicle(SpecAd[playerid]))
        {
            new 
playersip[20];
            
GetPlayerIp(SpecAd[playerid],playersip,sizeof(playersip));
            
format(str, sizeof(str),"~g~%s %i~n~~n~~w~Number: %i~n~IP: %s~n~~n~Ping: %i~n~~r~Speed: ~w~%i~n~~g~Armour: ~w~%.0f~n~~g~Health: ~w~%.0f~n~Warns: %i~n~~b~Ammo: ~w~%i~n~~n~~g~$ ~w~Cash: ~g~%i~n~~g~$ ~w~Bank: ~g~%i~n~~n~~r~Scan FPS: %i",PlayerInfo[SpecAd[playerid]][pNames],SpecAd[playerid],PlayerInfo[SpecAd[playerid]][pPnumber],playersip,GetPlayerPing(SpecAd[playerid]),SpeedVehicle(SpecAd[playerid]),aermor,
            
hppp,PlayerInfo[SpecAd[playerid]][pWarns],tttgtg,PlayerInfo[SpecAd[playerid]][pCash],PlayerInfo[SpecAd[playerid]][pBank],fps);
            
PlayerTextDrawSetString(playerid,FULLRECON[playerid],str);
        }
    }
    if(
PlayerInfo[playerid][pBank] >= 2000000001) PlayerInfo[playerid][pBank] = 2000000000, SendClientMessage(playerid,COLOR_WHITE,"У вас лимит {ffa500}банковских средств{FFFFFF}, больше {ffa500}2 млд. $ -{FFFFFF} нельзя!");
    if(
TheifTime[playerid] > 0)
    {
         if(
ProxDetectorS(2.0, playerid, TheifRobID[playerid]))
           {
            
TheifTime[playerid] --;
            if(!
TheifTime[playerid])
            {
                if(
TheifCount[playerid] < 8)
                {
                    
SetPlayerRandomKey(playerid, TheifKey[playerid], false);
                    
ShowPlayerActionBand(playerid, TheifCount[playerid], 8);
                }
            }
        }
        else
        {
              
CheckRobPlayer(playerid);
            
TogglePlayerControllable(playerid, true);
        }
    }
    return 
true;
} 
stock Fresh:
PHP код:
stock Fresh()
{
    new 
newhour,newminute,newsecond;
    
gettime(newhour, newminute, newsecond);
    if ((
newhour > ghour) || (newhour == 0 && ghour == 23))
    {
        new 
time[64];
        
format(time,sizeof(time), "Ñåé÷àñ âðåìåíè %d:00 ÷àñîâ",newhour);
        
ABroadCast(COLOR_LIGHTRED,time,6);
        
ghour = newhour;
        
PayDay();
        
SetWorldTime(newhour);
    }
    if(
adverttime > 0) adverttime--;
    if(
gAdvertTime > 0) gAdvertTime--;
    for(new 
i;i<MAX_ADVERT_COUNT;i++)
    {
        if(
gAdvert[i][adTime]) gAdvert[i][adTime]--;
        if(
gAdvert[i][adCheked] && !gAdvert[i][adTime])
        {
            new 
adver[144];
            
format(adver,sizeof(adver),"SAN | %s. | %s (òåë. %d)",gAdvert[i][adText],gAdvert[i][adSender],gAdvert[i][adPhone]);
            
SendClientMessageToAll(0x00FF00FF,adver);
            
format(adver,sizeof(adver),"         Îáúÿâëåíèå ïðîâåðèë ñîòðóäíèê SA News: %s", gAdvert[i][adCheker]);
            
SendClientMessageToAll(COLOR_GREEN,adver);
            
strdel(gAdvert[i][adSender],0,24);
            
gAdvert[i][adPhone] = 0;
            
strdel(gAdvert[i][adText],0,100);
            
strdel(gAdvert[i][adCheker],0,24);
            
gAdvert[i][adBusy] = false;
            
gAdvert[i][adCheked] = false;
            
gAdvert[i][adCheking] = false;
            
gAdvert[i][adTime] = 0;
            if(
gAdvertCount > 0) gAdvertCount--;
        }
    }
    if(
hitmansgatetime > 0)
    {
        
hitmansgatetime--;
        if(
hitmansgatetime == 0) MoveObject (hitmansgate, -1195.4439697,-1038.7869873,130.9980011, 2);
    }
    new 
stringdate[30],year,month,day,hours,minutes,seconds;
    
getdate(year, month, day);
    
gettime(hours, minutes, seconds);
    
format(stringdate, sizeof stringdate, "%d-%s%d-%s%d %02d:%02d:%02d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year, hours, minutes, seconds);
    
TextDrawSetString(Datum, stringdate);
    for(new 
i =0;i<sizeof(FrakCD);i++)
    {
        if(
FrakCD[i] > 0)
        {
            
FrakCD[i] --;
            if(
FrakCD[i] == 0) SendFamilyMessage(i,COLOR_LIGHTRED,"[F] Âàøà áàíäà ñíîâà ìîæåò ó÷àñòâîâàòü â çàõâàòå çîí");
        }
    }
    if(
TimerPaintBall && (StartPaintBall == 1 || StartPaintBall == 2)) TimerPaintBall--;
    if(!
TimerPaintBall && StartPaintBall == 1)
    {
        
StartPaintBall = 2;
        
TimerPaintBall = TIME_PAINTBALL;
        
SendClientMessageToAll(COLOR_YELLOW3, "SMS îò ÑÌÈ: Ìàò÷ ïî ïåéíòáîëó íà÷àëñÿ, ïðîäîëæèòåëüíîñòü 10 ìèíóò.");
        foreach (new 
i : Player)
        {
            if(
TeamPain[i] != 0) GameTextForPlayer(i,"~y~[START]", 2000, 4);
        }
    }
    if(
TimerPaintBall == 5 && StartPaintBall == 1)
    {
        if(
RedPlayer == 0 || BluePlayer == 0)
        {
            foreach (new 
i : Player)
            {
                if(
TeamPain[i] != 0) TeamPain[i] = 0;
            }
            
SendClientMessageToAll(COLOR_YELLOW3, "SMS îò ÑÌÈ: Ìàò÷ ïî ïåéíòáîëó îòìåíåí èç çà íåäîñòàòêà ó÷àñòíèêîâ.");
            
RedPlayer = 0, BluePlayer = 0;
            
StartPaintBall = 0;
        }
        else
        {
            foreach (new 
i : Player)
            {
                if(
TeamPain[i] == 0 || !gPlayerLogged[i]) continue;
                new 
str[28];
                
format(str,sizeof(str),"~r~TEAM RED: ~w~%d",RedScore);
                
TextDrawSetString(RedTeam, str);
                
TextDrawShowForPlayer(i, RedTeam);
                
format(str,sizeof(str),"~b~TEAM BLUE: ~w~%d",BlueScore);
                
TextDrawSetString(BlueTeam, str);
                
TextDrawShowForPlayer(i, BlueTeam);
                
TogglePlayerControllable(i, 0);
                
SetPVarInt(i,"DMWarning",5);
                
ResetWeapons(i);
                
SetPlayerInterior(i, 0);
                
SetPlayerArmourAC(i, 0);
                
SetPlayerHealthAC(i, 100);
                new 
spawn = random(6);
                if(
TeamPain[i] == 1)
                {
                    
SetPPos(i, SpawnBlueTeam[spawn][0],SpawnBlueTeam[spawn][1],SpawnBlueTeam[spawn][2]);
                    
SetPlayerInterior(i,0);
                    
PlayerInfo[i][pInt] = 0;
                    
SetPlayerVirtualWorld(i,0);
                    if(
PlayerInfo[i][pSex] == 1) SetPlayerSkin(i, 21);
                    if(
PlayerInfo[i][pSex] == 2)  SetPlayerSkin(i, 41);
                    
SetPlayerColor(i, COLOR_BLUE);
                }
                if(
TeamPain[i] == 2)
                {
                     
SetPPos(i, SpawnRedTeam[spawn][0],SpawnRedTeam[spawn][1],SpawnRedTeam[spawn][2]);
                     
SetPlayerInterior(i,0);
                     
PlayerInfo[i][pInt] = 0;
                     
SetPlayerVirtualWorld(i,0);
                     if(
PlayerInfo[i][pSex] == 1) SetPlayerSkin(i, 19);
                     if(
PlayerInfo[i][pSex] == 2)  SetPlayerSkin(i, 40);
                     
SetPlayerColor(i, COLOR_RED);
                 }
            }
        }
    }
    if(
StartPaintBall == 2 && !TimerPaintBall)
    {
        
SendClientMessageToAll(COLOR_YELLOW3, "SMS îò ÑÌÈ: Ìàò÷ ïî ïåéíòáîëó çàâåðøåí (( äëÿ ïðîñìîòðà ðåçóëüòàòîâ ââåäèòå: /get paintball ))");
        
StartPaintBall = 0;
        new 
string[128], number = 0;
        
strpaintball[0] = 0;
        
format(string,sizeof(string),"{33AAFF}Team Blue[%d] {FFFFFF}|| {FF0000}Team Red[%d]\n\n",BlueScore, RedScore);
        
strcat(strpaintball,string);
        foreach (new 
i : Player)
        {
            if(
TeamPain[i] == 0) continue;
            
SetPPos(i, 1557.7139,-1790.7910,13.5469);
            
SetPlayerFacingAngle(i, 269.1077);
            if(
PlayerInfo[i][pMember] != 0) SetPlayerSkin(i, PlayerInfo[i][pModel]);
            else 
SetPlayerSkin(i, PlayerInfo[i][pChar]);
            
ResetWeapons(i);
            
SetPlayerHealthAC(i,100);
            
SetPlayerToTeamColor(i);
            
TextDrawHideForPlayer(i, BlueTeam);
            
TextDrawHideForPlayer(i, RedTeam);
            
number++;
            if(
TeamPain[i] == 1)
            {
                if(
BlueScore > RedScore)
                {
                    
SendClientMessage(i, COLOR_GREEN,"Âàøà êîìàíäà ïîáåäèëà! Âàø ïðèç ñîñòàâèë: 50 DonateMoney");
                    
PlayerInfo[i][pDonatemoney2] += 50;
                }
                
format(string,sizeof(string),"{33AAFF}%s | Kill: %d | Death: %d \n",PlayerInfo[i][pNames], KillPain[i], DeathPain[i]);
                
strcat(strpaintball,string);
            }
            if(
TeamPain[i] == 2)
            {
                if(
BlueScore < RedScore)
                {
                    
SendClientMessage(i, COLOR_GREEN,"Âàøà êîìàíäà ïîáåäèëà! Âàø ïðèç ñîñòàâèë: 50 DonateMoney");
                    
PlayerInfo[i][pDonatemoney2] += 50;
                }
                
format(string,sizeof(string),"{FF0000}%s | Kill: %d | Death: %d \n",PlayerInfo[i][pNames], KillPain[i], DeathPain[i]);
                
strcat(strpaintball,string);
            }
            
TeamPain[i] = 0;
            
KillPain[i] = 0;
            
DeathPain[i] = 0;
        }
    }
    new 
Float:hp;
    new 
hour, minute, second;
    
gettime(hour, minute, second);
    for(new 
i;i<MAX_PLAYERS;i++)
    {
        if(
gReconnectTime[i]) gReconnectTime[i]--;
        if(!
IsPlayerConnected(i)) continue;
        if(
GetPVarInt(i, "AntiBreik") > 0) SetPVarInt(i, "AntiBreik", GetPVarInt(i, "AntiBreik") - 1);
        
AntiCheat(i);
        
GetVehicleHealth(GetPlayerVehicleID(i), hp); // тут ошибка ( строчка: 19323)
        
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1)
        {
            if(
GetPlayerState(i) == PLAYER_STATE_DRIVER)
            {
                if(
hp < 100)
                {
                    
zavodis[i] = 0;
                    
GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
                    
SetVehicleParamsEx(GetPlayerVehicleID(i),0,0,alarm,doors,bonnet,boot,objective);
                }
            }
        }
        
SetPVarInt(i, "HealthTime", GetPVarInt(i, "HealthTime") + 1);
        if(
GetPVarInt(i, "HealthTime") == 50)
        {
            
SetPVarInt(i, "HealthTime", 0);
            if(
PlayerInfo[i][pSatiety] > 0) PlayerInfo[i][pSatiety]--;
            if(
PlayerInfo[i][pSatiety] == 49 || PlayerInfo[i][pSatiety] == 24) SendMes(i,COLOR_BLUE, "Âû ïðîãîëîäàëèñü! Ñîñòîÿíèå ñûòîñòè %i ïðîöåíòîâ!",PlayerInfo[i][pSatiety]);
            
GetPlayerHealth(i, hp);
            if(
PlayerInfo[i][pSatiety] < 50) SetPlayerHealthAC(i, hp - 1);
            else if(
PlayerInfo[i][pSatiety] < 25) SetPlayerHealthAC(i, hp - 2);
        }
        if(
AntiBan[i] > 0) AntiBan[i]--;
        if(
noooc[1] > 0) noooc[1]--;
        if(!
PlayerToPoint(40.0,i,264.1425,77.4712,1001.0391) && PlayerInfo[i][pJailed] == 1 || PlayerInfo[i][pJailed] == 2 || PlayerInfo[i][pJailed] == 3)
        {
            
SetPlayerInterior(i, 6);
            
PlayerInfo[i][pInt] = 6;
            
SetPPos(i,264.1425,77.4712,1001.0391);
            
SetPlayerFacingAngle(i, 263.0160);
            
PlayerInfo[i][pJailed] = 1;
            
PlayerInfo[i][pMestoJail] = 1;
            
SendClientMessage(i,COLOR_GREY,"Çà ïîâòîðíóþ ïîïûòêó ñáåæàòü èç òþðüìû âû ìîæåòå ïîëó÷èòü áàí.");
        }
        if(!
PlayerToPoint(20.0,i,2543.0537,-8141.8242,72.6420) && PlayerInfo[i][pJailed] == 4)
        {
            
SetPlayerInterior(i, 0);
            
PlayerInfo[i][pInt] = 0;
            
SetPPos(i,2543.0537,-8141.8242,72.6420);
            
SetPlayerFacingAngle(i, 268.7242);
            
PlayerInfo[i][pJailed] = 4;
            
SendClientMessage(i,COLOR_GREY,"Çà ïîâòîðíóþ ïîïûòêó ñáåæàòü èç òþðüìû âû ìîæåòå ïîëó÷èòü áàí.");
        }
        if(
TimeBox[i] > 0)
        {
            
TimeBox[i]--;
            
format(stringer1, sizeof(stringer1), "~g~%d",TimeBox[i]);
            
GameTextForPlayer(i, stringer1, 3000, 6);
            if(
TimeBox[i] == 0)
            {
                
GameTextForPlayer(i, "~r~Fight!", 3000, 6);
                
TogglePlayerControllable(i, 1);
            }
        }
        if(
TimeBoxAll[i] > 0)
        {
            
TimeBoxAll[i]--;
            if(
TimeBoxAll[i] == 0)
            {
                
ring = 0;
                
boy[i] = 0;
                
boy[fightid[i]] = 0;
                
SetPPos(i,770.7656,3.9569,1000.7176);
                
SetPlayerFacingAngle(i, 90.0);
                
SetPPos(fightid[i],770.7488,6.9432,1000.7118);
                
SetPlayerFacingAngle(fightid[i], 90.0);
                
PlayerInfo[i][pFightTime]= 600;
                
PlayerInfo[fightid[i]][pFightTime]= 600;
                
fightid[i] = INVALID_PLAYER_ID;
                
fightid[fightid[i]] = INVALID_PLAYER_ID;
                
TogglePlayerControllable(fightid[i], 0);
            }
        }
        if(
startnarko[i] == 1)
        {
            if(
PlayerInfo[i][pNarcoLomka] >=3000)
            {
                if(
send[i] == 0)
                {
                    
SendClientMessage(i, COLOR_RED, "~~~~~~~~ Ó âàñ íà÷àëàñü ëîìêà ~~~~~~~~");
                    
SendClientMessage(i, COLOR_WHITE, "(( Âûçâàòü ìåäèêà - /call => [2] Ñêîðàÿ ïîìîùü    ||    Ïðèíÿòü íàðêîòèê - /usedrugs ))");
                    
send[i] = 1;
                }
                if(
GetPlayerState(i) == PLAYER_STATE_ONFOOT) ApplyAnimation(i, "CRACK", "CRCKDETH1", 4.0, 1, 1, 1, 1, 0),send[i] = 1;
            }
        }
        if(
bankdoortime[i] > 0 && bankdoors == 1)
        {
            
bankdoortime[i]--;
            if(
bankdoortime[i] == 1) bankdoors = 0,MoveObject (DoorOpen[0], 2144.17,1627.082,994.2620, 0.3);
        }
        if(
SwatDoor[0][i] > 0)
        {
            
SwatDoor[0][i]--;
            if(
SwatDoor[0][i] == 1) MoveObject(gatevorota,777.56915283,-1384.85498047,14.39731598, 3.0);
        }
        if(
SwatDoor[1][i] > 0)
        {
            
SwatDoor[1][i]--;
            if(
SwatDoor[1][i] == 1) MoveObject(gatevorota2,781.87298584,-1330.21044922,12.70648003, 3.0);
        }
        if(
GetPVarInt(i,"DMWarning") > 0)
        {
            
SetPVarInt(i,"DMWarning",GetPVarInt(i,"DMWarning")-1);
            if(
GetPVarInt(i,"DMWarning") <= 0) TogglePlayerControllable(i, 1);
        }
        if(
lighttime[i] > 0)
        {
            
lighttime[i]--;
            if(
lighttime[i] == 1) lights1 = 0;
        }
        if(
minigun[i] > 0)
        {
            
minigun[i]--;
            if(
minigun[i] >= 15) { SendClientMessage(i,COLOR_LIGHTRED," Âû áûëè êèêíóòû çà ïîäîçðåíèå â ÷èòåðñòâå."); KickEx(i); }
        }
        if(
connecttime[i] > 0)
        {
            
connecttime[i] -=1;
            if(
connecttime[i] == 1)
            {
                
connecttime[i] = 0;
                
KickEx(i);
                
SendClientMessage(i,COLOR_WHITE,"Âû ñëèøêîì äîëãî âõîäèòå â èãðó.");
            }
        }
        if(
Music2 == true)
        {
            if(
IsPlayerInRangeOfPoint(i, MusicU[4], MusicU[1], MusicU[2], MusicU[3]))
            {
                if(!
GetPVarInt(i,"Music"))
                {
                    
SetPVarInt(i,"Music",1);
                    
PlayAudioStreamForPlayer(i, UMusic, MusicU[1], MusicU[2], MusicU[3], MusicU[4], true);
                }
            }
            else
            {
                if(
GetPVarInt(i,"Music"))
                {
                    
DeletePVar(i,"Music");
                    
StopAudioStreamForPlayer(i);
                }
            }
        }
        if(
rbtime[i] > 0)
        {
            
rbtime[i] --;
            if(
rbtime[i] == 1 && RB[i] != 0)
            {
                
DestroyDynamicObject(BlockPost[RB[i]]);
                
DestroyDynamic3DTextLabel(Block3D[RB[i]]);
                
rbtime[i] = 0;
                
RB[i] = 0;
            }
        }
        if(
GetPVarInt(i,"ProductTime") > 0 && GetPVarInt(i, "ProductID") > 0)
        {
            
SetPVarInt(i,"ProductTime",GetPVarInt(i,"ProductTime")-1);
            
format(stringer1,32,"~r~%d",GetPVarInt(i,"ProductTime"));
            
GameTextForPlayer(i, stringer1, 2000, 6);
            if(
GetPVarInt(i,"ProductTime") == 0)
            {
                
SendClientMessage(i, COLOR_LIGHTRED, "Âðåìÿ èñòåêëî, âûïîëíåíèå çàêàçà îòìåíåíî");
                
ProductInfo[GetPVarInt(i, "ProductID")][pStatus] = false;
                
DeletePVar(i, "ProductID");
            }
        }
        
GetPosPickup(i);
        
onlinecheck[i]++;
        if(
onlinecheck[i] >= 60) PlayerInfo[i][pDayOnline]++, onlinecheck[i] = 0;
        if(
gov[i] > 0) gov[i]--;
        if(
PlayerInfo[i][pContract] > 0) PlayerInfo[i][pContract]--;
        if(
PlayerInfo[i][pGunfbiTime] > 0) PlayerInfo[i][pGunfbiTime]--;
        if(
PlayerInfo[i][pGun51Time] > 0) PlayerInfo[i][pGun51Time]--;
        if(
PlayerInfo[i][pGunlspdTime] > 0) PlayerInfo[i][pGunlspdTime]--;
        if(
PlayerInfo[i][pGunaviaTime] > 0) PlayerInfo[i][pGunaviaTime]--;
        if(
PlayerInfo[i][pFightTime] > 0) PlayerInfo[i][pFightTime]--;
        if(
saveplayer[i]) saveplayer[i]--;
        if(
jackcar[i] > 0)
        {
            
jackcar[i] -=1;
            if(
jackcar[i] == 1)
            {
                
jackcar[i] = 0;
                new 
nearveh = GetNearestVehicle(i);
                new 
carid = nearveh;
                new 
Float:cx,Float:cy,Float:cz;
                
GetVehiclePos(carid, cx, cy, cz);
                new 
randd = random(12);
                if(
PlayerToPoint(4.0, i, cx, cy, cz))
                {
                    switch(
randd)
                    {
                    case 
0..4:
                        {
                            
UnLockCar(carid);
                            
IsLocked[carid] = 0;
                            
TogglePlayerControllable(i, 1);
                            
GameTextForPlayer(i, "~g~Un Locked", 5000, 6);
                            if(
IsACop(i)) format(stringer1, sizeof(stringer1), "Çàêîííèê %s óñïåøíî âçëàìûâàåò çàìîê òðàíñïîðòà", PlayerInfo[i][pNames]);
                            else 
format(stringer1, sizeof(stringer1), "Íåçíàêîìåö óñïåøíî âçëàìûâàåò çàìîê òðàíñïîðòà");
                            
ProxDetector(30.0, i, stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                    default:
                        {
                            
TogglePlayerControllable(i, 1);
                            
PlayerInfo[i][pOtmbI4ka]--;
                            if(
IsACop(i)) format(stringer1, sizeof(stringer1), "Çàêîííèê %s íå ñìîã âçëîìàòü çàìîê òðàíñïîðòà", PlayerInfo[i][pNames]);
                            else 
format(stringer1, sizeof(stringer1), "Íåçíàêîìåö íå ñìîã âçëîìàòü çàìîê òðàíñïîðòà");
                            
ProxDetector(30.0, i, stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                    }
                }
            }
        }
        new 
str[30];
        if(
GetPVarInt(i,"AFK_Tick") > 10000) SetPVarInt(i,"AFK_Tick",1),SetPVarInt(i,"AFK_Check",0);
        if(
GetPVarInt(i,"AFK_Check") < GetPVarInt(i,"AFK_Tick") && GetPlayerState(i)) SetPVarInt(i,"AFK_Check",GetPVarInt(i,"AFK_Tick")),SetPVarInt(i,"AFK_Time",0);
        if(
GetPVarInt(i,"AFK_Check") == GetPVarInt(i,"AFK_Tick") && GetPlayerState(i))
        {
            
SetPVarInt(i,"AFK_Time",GetPVarInt(i,"AFK_Time") + 1);
            if(
GetPVarInt(i, "AFK_Time") > 2)
            {
                
format(str,sizeof(str),"[AFK %s]",Convert(GetPVarInt(i,"AFK_Time")-2));
                
SetPlayerChatBubble(i,str,CBLUE,30.0,3000);
            }
        }
        new 
anim = GetPlayerAnimationIndex(i);
        if(
GetPVarInt(i,"AntiDM") > 0)
        {
            if(
anim != 471) ApplyAnimation(i, "FAT", "IDLE_tired",4.0,1,0,0,0,0,1);
            
SetPVarInt(i,"AntiDM",GetPVarInt(i,"AntiDM")-1);
            if(
GetPVarInt(i,"AntiDM") == 0) ClearAnimations(i);
        }
        if(
crashcuff[i] > 0) crashcuff[i]--;
        if(
robbankstime[i] > 0 && robbanks == 1)
        {
            
robbankstime[i]--;
            if(
robbankstime[i] == 1)
            {
                
robbankstime[i] = 0;
                new 
rand = random(12);
                new 
randmoney = random(60);
                switch(
rand)
                {
                case 
0..4:
                    {
                        if(
randmoney != 37)
                        {
                            new 
kaznarob = kazna/40;
                            
PlayerInfo[i][pRobTime] = 10800;
                            
ApplyAnimation(i,"ROB_BANK","CAT_Safe_End",4.1,0,1,1,0,0);
                            
PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            
WantedPoints[i]+=4;
                            
PlayerInfo[i][pWanted]+=4;
                            
PlayerInfo[i][pCash] += kaznarob;
                            
kazna -= kaznarob;
                            
format(stringer1, sizeof(stringer1), "~g~+$%d", kaznarob);
                            
GameTextForPlayer(i, stringer1, 5000, 1);
                            
SetPlayerExtra(i,255, "Âçëîì áàíêîâñêîãî ñåéôà");
                            
TogglePlayerControllable(i, 1);
                            
format(stringer1, sizeof(stringer1), "Íåçíàêîìåö âçëàìûâàåò áàíêîâñêèé ñåéô íà %d âèðò.",kaznarob);
                            
ProxDetector(30.0, i, stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
ClearAnimations(i, 1);
                            
robbanks = 0;
                            
format(stringer1,sizeof(stringer1),"{C2A2DA}Êàçíà øòàòà: {FFD700}%d\n{C2A2DA}Íàëîã ãîñóäàðñòâà: {FFD700}%d\n{C2A2DA}Ïîæåðòâîâàòü äåíåã ââåäèòå '/putkazna'", kazna, nalog);
                            
Update3DTextLabelText(kaznameria, 0xC2A2DAFF, stringer1);
                        }
                        else
                        {
                            new 
kaznarob = kazna/20;
                            
PlayerInfo[i][pRobTime] = 10800;
                            
ApplyAnimation(i,"ROB_BANK","CAT_Safe_End",4.1,0,1,1,0,0);
                            
PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            
WantedPoints[i]+=4;
                            
PlayerInfo[i][pWanted]+=4;
                            
PlayerInfo[i][pCash] += kaznarob;
                            
kazna -= kaznarob;
                            
format(stringer1, sizeof(stringer1), "~g~+$%d",kaznarob);
                            
GameTextForPlayer(i, stringer1, 5000, 1);
                            
format(stringer1, sizeof(stringer1), "{9ACD32}Ñðî÷íûå íîâîñòè: Íåçíàêîìåö âûòàùèë èç áàíêîâñêîãî ñåéôà %d âèðò!",kaznarob);
                            
SendClientMessageToAll(COLOR_LIGHTRED, stringer1);
                            
SetPlayerExtra(i,255, "Âçëîì áàíêîâñêîãî ñåéôà");
                            
format(stringer1, sizeof(stringer1), "Íåçíàêîìåö âçëàìûâàåò áàíêîâñêèé ñåéô íà %s âèðò.", kaznarob);
                            
ProxDetector(30.0, i, stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
TogglePlayerControllable(i, 1);
                            
ClearAnimations(i, 1);
                            
robbanks = 0;
                            
format(stringer1,sizeof(stringer1),"{C2A2DA}Êàçíà øòàòà: {FFD700}%d\n{C2A2DA}Íàëîã ãîñóäàðñòâà: {FFD700}%d\n{C2A2DA}Ïîæåðòâîâàòü äåíåã ââåäèòå '/putkazna'", kazna, nalog);
                            
Update3DTextLabelText(kaznameria, 0xC2A2DAFF, stringer1);
                        }
                    }
                default:
                    {
                        if(
lights1 == 1)
                        {
                            
ApplyAnimation(i,"ROB_BANK","CAT_Safe_End",4.1,0,1,1,0,0);
                            
PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            
SendClientMessage(i,COLOR_GREY,"Ïîïðîáóéòå åùå ðàç. Ýëåêòðè÷åñòâî áàíêà îòêëþ÷åíî, ñïåøèòå!");
                            
TogglePlayerControllable(i, 1);
                            
ClearAnimations(i, 1);
                            
robbanks = 0;
                            
format(stringer1, sizeof(stringer1), "Íåçíàêîìåö íåóäà÷íî âçëàìûâàåò áàíêîâñêèé ñåéô.");
                            
ProxDetector(30.0, i, stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                        else
                        {
                            
ApplyAnimation(i,"ROB_BANK","CAT_Safe_End",4.1,0,1,1,0,0);
                            
PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            
SendClientMessage(i,COLOR_GREY,"Ïîïðîáóéòå åùå ðàç.");
                            
WantedPoints[i]+=1;
                            
PlayerInfo[i][pWanted]+=1;
                            
SetPlayerExtra(i,255, "Ïîïûòêà âçëîìà áàíêîâñêîãî ñåéôà.");
                            
format(stringer1, sizeof(stringer1), "Íåçíàêîìåö íåóäà÷íî âçëàìûâàåò áàíêîâñêèé ñåéô.");
                            
ProxDetector(30.0, i, stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
TogglePlayerControllable(i, 1);
                            
ClearAnimations(i, 1);
                            
robbanks = 0;
                        }
                    }
                }
            }
        }
        if(
hour >= 12 && minute == 10 && second == 0) startnarko[i] = 1;
        
DeletePVar(i,"NoAB");
        if(
PlayerInfo[i][pDrugtime] > 0) PlayerInfo[i][pDrugtime]--;
        if(
PlayerInfo[i][pRobTime] > 0) PlayerInfo[i][pRobTime]--;
        if(
PlayerInfo[i][pReportTime] > 0) PlayerInfo[i][pReportTime]--;
        if(
PlayerInfo[i][pAutoTime] > 0) PlayerInfo[i][pAutoTime]--;
        if(
clearanim[i] > 0)
        {
            
clearanim[i] --;
            if(
clearanim[i] == 0) ApplyAnimation(i,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
        }
        if(
PlayerInfo[i][pMuteTime] > 0 && PlayerInfo[i][pMuted] == 1)
        {
            
PlayerInfo[i][pMuteTime] -=1;
            if(
PlayerInfo[i][pMuteTime] == 1)
            {
                
PlayerInfo[i][pMuted] = 0;
                
PlayerInfo[i][pMuteTime] = 0;
                
SendClientMessage(i,COLOR_WHITE,"Âàì âêëþ÷èëè ÷àò. Ïîæàëóéñòà áîëüøå íå íàðóøàéòå ïðàâèëà");
            }
        }
        if(
IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER) UpdateSpeedometr(i);
        
//------------------------------------------------------------------------------
        
if(IsPlayerConnected(i))
        {
            if(
PlayerInfo[i][pJailed] > 0)
            {
                if(
PlayerInfo[i][pJailTime] > 0) PlayerInfo[i][pJailTime]--;
                if(
PlayerInfo[i][pJailTime] <= 0)
                {
                    if(
PlayerInfo[i][pJailed] == 1)
                    {
                        if(
PlayerInfo[i][pMestoJail] == 1)
                        {
                            
SetPlayerInterior(i, 0);
                            
PlayerInfo[i][pInt] = 0;
                            
SetPPos(i,1547.11,-1675.76,13.94);//Òþðüìà
                            
SetPlayerFacingAngle(i, 95.0636);
                        }
                        if(
PlayerInfo[i][pMestoJail] == 2)
                        {
                            
SetPlayerInterior(i, 0);
                            
PlayerInfo[i][pInt] = 0;
                            
SetPPos(i,-1607.1873,721.3649,12.2721);//Òþðüìà
                            
SetPlayerFacingAngle(i, 2.3026);
                        }
                        if(
PlayerInfo[i][pMestoJail] == 3)
                        {
                            
SetPlayerInterior(i, 0);
                            
PlayerInfo[i][pInt] = 0;
                            
SetPPos(i,2334.8467,2454.9456,14.9688);//Òþðüìà
                            
SetPlayerFacingAngle(i, 115.7874);
                        }
                    }
                    else if(
PlayerInfo[i][pJailed] == 4)
                    {
                        
SetPlayerInterior(i, 0);
                        
PlayerInfo[i][pInt] = 0;
                        
SetPPos(i,1547.11,-1675.76,13.94);//Òþðüìà
                        
SetPlayerFacingAngle(i, 95.0636);
                    }
                    
PlayerInfo[i][pJailTime] = 0;
                    
PlayerInfo[i][pJailed] = 0;
                    
SendClientMessage(i, COLOR_ISPOLZUY,"Âû çàïëàòèëè ñâîé äîëã îáùåñòâó, òåïåðü âû ñâîáîäíû!");
                    
PlayerInfo[i][pMestoJail] = 0;
                    
WantedLevel[i] = 0;
                    
PlayerInfo[i][pWanted] = 0;
                    
WantedPoints[i] = 0;
                    
SetPlayerWantedLevel(i, 0);
                    
SetPlayerVirtualWorld(i, 0);
                    
GameTextForPlayer(i, "~g~Freedom", 5000, 1);
                    
SetPlayerToTeamColor(i);
                }
            }
            if(
JobCarTime[i] <= 16 && JobCarTime[i] >= 1)
            {
                
JobCarTime[i]--;
                
format(stringer1,sizeof(stringer1),"~r~%d",JobCarTime[i] - 1);
                
GameTextForPlayer(i, stringer1, 2000, 6);
            }
            if(
Tazer[i] == 1)
            {
                if(
TazerTime[i] <= 0) Tazer[i] = 0;
                else 
TazerTime[i] -= 1;
            }
            if(
TieTime[i] > 0)
            {
                
TieTime[i]--;
                if(
TieTime[i] == 0) gag[i] = 0,SendClientMessage(i, COLOR_GREY, "Êëÿï ñòàë ìîêðûì è âûïàë, âû ñíîâà ìîæåòå ãîâîðèòü!");
            }
            if(
PlayerCuffed[i] == 1)
            {
                if(
PlayerCuffedTime[i] <= 0)
                {
                    
TogglePlayerControllable(i, 1);
                    
PlayerCuffed[i] = 0;
                    
PlayerCuffedTime[i] = 0;
                }
                else 
PlayerCuffedTime[i] -= 1;
            }
            if(
PlayerCuffed[i] == 2)
            {
                if(
PlayerCuffedTime[i] <= 0)
                {
                    
TogglePlayerControllable(i, 1);
                    
PlayerCuffed[i] = 0;
                    
PlayerCuffedTime[i] = 0;
                }
                else 
PlayerCuffedTime[i] -= 1;
            }
            new 
GetTime = gettime();
              if(
Timer[7] <= GetTime && Timer[7] != 0)
            {
                
Timer[7] = GetTime+1;
                
GzCheck();
            }
        }
    }
    if(
hour == 00 || hour == 03 || hour == 06 || hour == 09 || hour == 12 || hour == 15 || hour == 18 || hour == 21)
    {
        if(
hour == 06 && minute == 00 && second == 00)
        {
            
mysql_function_query(connects, "UPDATE `"TABLE_ACCOUNT"` SET `pHotvet` = '0', `day_online` = '0'", false, "", "");
            foreach (new 
i : Player)
            {
                
PlayerInfo[i][pHotvet] = 0;
                
PlayerInfo[i][pDayOnline] = 0;
            }
        }
        if(
minute == 32 && second == 00)
        {
            for(new 
h = 0; h < sizeof(HouseInfo); h++)
            {
                if(
HouseInfo[h][hKlass] == 0 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=300; kazna += 300;
                    if(
HouseInfo[h][hTakings] > 16800) HouseInfo[h][hTakings] = 16800;
                }
                if(
HouseInfo[h][hKlass] == 1 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=600; kazna += 600;
                    if(
HouseInfo[h][hTakings] > 33600) HouseInfo[h][hTakings] = 33600;
                }
                if(
HouseInfo[h][hKlass] == 2 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=900; kazna += 900;
                    if(
HouseInfo[h][hTakings] > 50400) HouseInfo[h][hTakings] = 50400;
                }
                if(
HouseInfo[h][hKlass] == 3 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=1200; kazna += 1200;
                    if(
HouseInfo[h][hTakings] > 67200) HouseInfo[h][hTakings] = 67200;
                }
                if(
HouseInfo[h][hKlass] == 4 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=1500; kazna += 1500;
                    if(
HouseInfo[h][hTakings] > 84000) HouseInfo[h][hTakings] = 84000;
                }
                if(
HouseInfo[h][hTakings] <= 0 && HouseInfo[h][hOwned] == 1)
                {
                    new 
housecash = HouseInfo[h][hValue];
                    new 
playeridd = GetPlayerID(HouseInfo[h][hOwner]);
                    if(
IsPlayerConnected(playeridd))
                    {
                        
PlayerInfo[playeridd][pPhousekey] = 255;
                        if(
caridhouse[playeridd] != -1)
                        {
                            
DestroyVehicle(caridhouse[playeridd]);
                            
caridhouse[playeridd] = -1;
                        }
                        
SendClientMessage(playeridd, COLOR_LIGHTRED, "Âàø äîì áûë ïðîäàí çà íåóïëàòó ãîñóäàðòñâó.");
                    }
                    else if(!
IsPlayerConnected(playeridd))
                    {
                        new 
mysql_query_[256];
                        
format(mysql_query_, sizeof(mysql_query_), "UPDATE `"TABLE_ACCOUNT"` SET `pPhousekey` = '255', `pHousecash` = '%d' WHERE `Name` = '%s'",housecash, HouseInfo[h][hOwner]);
                        
mysql_function_query(connects, mysql_query_, false, "", "");
                    }
                    
HouseInfo[h][hHel] = 0;
                    
HouseInfo[h][hLock] = 1;
                    
HouseInfo[h][hOwned] = 0;
                    
strmid(HouseInfo[h][hOwner], "The State", 0, strlen("The State"), 255);
                    
SaveHouse(h);
                }
                
HouseInfo[h][hRobhouse] = false;
                
BuyHouse(h);
            }
        }
    }
    if(
BizzWarTimeAll > 0) BizzWarTimeAll --;
    if(
BizzWars == false && BizzWarsNumber == -1) return true;
    if(
BizzWarTime > 0)
    {
        
BizzWarTime --;
        
CheckBizWar();
    }
    else 
FinishBizWar();
    return 
true;
} 
TimerUpdate:
PHP код:
publics: TimerUpdate() Fresh(); // ошибка (строчка: 21731) 



Re: Ошибки крашдетектера. - ZiGGi - 02.03.2015

Скомпилируй с флагом -d2 чтобы узнать в каком массиве и какой строчке ошибка.


Re: Ошибки крашдетектера. - gensek4 - 02.03.2015

Так а какая разница между флагом -d2 и -d3? Сейчас он скомпилирован с флагом -d3 и показана строчка.


Re: Ошибки крашдетектера. - ZiGGi - 02.03.2015

Quote:
Originally Posted by gensek4
Посмотреть сообщение
Так а какая разница между флагом -d2 и -d3? Сейчас он скомпилирован с флагом -d3 и показана строчка.
Ну ты бы указал, что выделил строку, в куче этого кода её не сразу заметишь. Очевидно, что GetPlayerWeapon(playerid) по какой-то причине возвращает 52, когда массив имеет 47 ячеек (именно столько оружия доступно в гта). В твоём случае будет проще добавить проверку в условие:
pawn Код:
if(GetPlayerWeapon(playerid) > 0 && GetPlayerWeapon(playerid) < 47 && GetPlayerAmmo(playerid) == 0 && Weapons[playerid][GetPlayerWeapon(playerid)] == 0 && GetPVarInt(playerid, "GunCheck") < gettime())



Re: Ошибки крашдетектера. - gensek4 - 02.03.2015

Ты гений) А что с остальными ошибками? Я везде их выделил, во 2 ошибке (где сток Fresh), ошибку выдаёт в

PHP код:
GetVehicleHealth(GetPlayerVehicleID(i), hp); // тут ошибка ( строчка: 19323) 



Re: Ошибки крашдетектера. - gensek4 - 02.03.2015

Тут еще 2 ошибочки вылезли:

PHP код:
[08:57:19] [debug] Run time error 4: "Array index out of bounds"
[08:57:19] [debug]  Accessing element at negative index -1
[08:57:19] [debug] AMX backtrace:
[
08:57:19] [debug] #0 00130c78 in public OtherTimer () at C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\gamemodes\edit.pwn:19126 
PHP код:
public OtherTimer()
{
    
GetMoney();
    foreach(
Player,i)
    {
        if(
IsPlayerConnected(i))
        {
            if(
CellTime[i] > 0)
            {
                if (
CellTime[i] == cchargetime)
                {
                    
CellTime[i] = 1;
                    if(
Mobile[Mobile[i]] == i) CallCost[i] = CallCost[i]+callcost;
                }
                
CellTime[i] = CellTime[i] +1;
                if (
Mobile[Mobile[i]] == -1 && CellTime[i] == 5) // Вот строчка где ошибка
                
{
                    if(
IsPlayerConnected(Mobile[i]))
                    {
                        
format(stringer1, sizeof(stringer1), "У %s звонит мобильник", PlayerInfo[Mobile[i]][pNames]);
                        
ProxDetector(30.0, Mobile[i], stringer1, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                }
            }
            if(
CellTime[i] == 0 && CallCost[i] > 0)
            {
                
format(stringer1, sizeof(stringer1), "~w~Phone~n~~r~%d",CallCost[i]);
                
PlayerInfo[i][pCash] -=-CallCost[i];
                
GameTextForPlayer(i, stringer1, 5000, 1);
                
CallCost[i] = 0;
            }
        }
    }
    return 
true;
} 
PHP код:
[08:57:22] [debug] Run time error 4: "Array index out of bounds"
[08:57:22] [debug]  Accessing element at index 65535 past array upper bound 599
[08:57:22] [debug] AMX backtrace:
[
08:57:22] [debug] #0 002d0830 in public cmd_accept (playerid=45, params[]=@0045dafc "house") at C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\gamemodes\edit.pwn:33138 
PHP код:
    else if(strcmp(x_job,"house",true) == 0)
    {
        if(
ChangeHouse[playerid][hCena] > 89999 && ChangeHouse[playerid][hProdaet] != INVALID_PLAYER_ID)
        {
            if(
ProxDetectorS(8.0, playerid, ChangeHouse[playerid][hProdaet]))
            {
                new 
house = PlayerInfo[ChangeHouse[playerid][hProdaet]][pPhousekey];
                if(
PlayerInfo[playerid][pCash] < ChangeHouse[playerid][hCena])return SendClientMessage(playerid, COLOR_GREY, "У вас нет столько денег на руках!");
                
PlayerInfo[playerid][pCash] -= ChangeHouse[playerid][hCena];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pCash] += ChangeHouse[playerid][hCena];
                
PlayerInfo[playerid][pPhousekey] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pPhousekey];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pPhousekey] = 255;
                
strmid(HouseInfo[house][hOwner], PlayerInfo[playerid][pNames], 0, strlen(PlayerInfo[playerid][pNames]), 255);
                
SendMes(playerid,COLOR_WHITE,"Вы купили дом у %s за %d вирт.",PlayerInfo[ChangeHouse[playerid][hProdaet]][pNames],ChangeHouse[playerid][hCena]);
                
SendMes(ChangeHouse[playerid][hProdaet],COLOR_WHITE,"Вы продали дом %s за %d вирт.",PlayerInfo[playerid][pNames],ChangeHouse[playerid][hCena]);
                
PlayerInfo[playerid][pVcol1] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pVcol1];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pVcol1] = 0;
                
PlayerInfo[playerid][pVcol2] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pVcol2];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pVcol2] = 0;
                
PlayerInfo[playerid][pKolesocar] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pKolesocar];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pKolesocar] = 0;
                
PlayerInfo[playerid][pNitro] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pNitro];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pNitro] = 0;
                
PlayerInfo[playerid][pGidra] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pGidra];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pGidra] = 0;
                new 
model = GetVehicleModel(caridhouse[ChangeHouse[playerid][hProdaet]]);
                if(
model == 534 || model == 535 || model == 536 || model ==558 || model ==559 || model ==560 || model ==561 || model ==562 || model ==565 || model ==576 || model ==483 || model == 567)
                {
                    
PlayerInfo[playerid][pPokraska] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pPokraska];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pPokraska] = 0;
                    
PlayerInfo[playerid][pSpoiler] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pSpoiler];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pSpoiler] = 0;
                    
PlayerInfo[playerid][pHood] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pHood];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pHood] = 0;
                    
PlayerInfo[playerid][pExhaust] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pExhaust];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pExhaust] = 0;
                    
PlayerInfo[playerid][pLamps] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pLamps];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pLamps] = 0;
                    
PlayerInfo[playerid][pSideskirt] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pSideskirt];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pSideskirt] = 0;
                    
PlayerInfo[playerid][pVozdyx] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pVozdyx];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pVozdyx] = 0;
                    
PlayerInfo[playerid][pBamper1] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pBamper1];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pBamper1] = 0;
                    
PlayerInfo[playerid][pBamper2] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pBamper2];
                    
PlayerInfo[ChangeHouse[playerid][hProdaet]][pBamper2] = 0;
                }
                if(
caridhouse[ChangeHouse[playerid][hProdaet]] != -1)
                {
                    
DestroyVehicle(caridhouse[ChangeHouse[playerid][hProdaet]]);
                    
caridhouse[ChangeHouse[playerid][hProdaet]] = -1;
                }
                
PlayerInfo[playerid][pCar] = PlayerInfo[ChangeHouse[playerid][hProdaet]][pCar];
                
PlayerInfo[ChangeHouse[playerid][hProdaet]][pCar] = 462;
                
OnPlayerUpdateRL(playerid);
                new 
mysql_query_[256];
                
format(mysql_query_, sizeof(mysql_query_), "UPDATE `"TABLE_HOUSE"` SET `hOwner` = '%s' WHERE hID = '%i'",PlayerInfo[playerid][pNames],PlayerInfo[playerid][pPhousekey]);
                
mysql_function_query(connects, mysql_query_, false, "", "");
                
ChangeHouse[playerid][hProdaet] = INVALID_PLAYER_ID;
                
ChangeHouse[ChangeHouse[playerid][hProdaet]][hPokypaet] = INVALID_PLAYER_ID; // Ошибка
                
ChangeHouse[playerid][hCena] = 0;
            }
            else return 
SendClientMessage(playerid,COLOR_GREY,"Вы далеко от продавца.");
        }
        else return 
SendClientMessage(playerid,COLOR_GREY,"Вам не предлагали купить дом.");
    } 



Re: Ошибки крашдетектера. - ZiGGi - 02.03.2015

Бессмыслица:
pawn Код:
if (Mobile[Mobile[i]] == -1 && CellTime[i] == 5)
Очевидно, что задумывалось так:
pawn Код:
if (Mobile[i] == -1 && CellTime[i] == 5)
Почти тоже самое, ты изменяешь значение ChangeHouse[playerid][hProdaet], а потом его используешь:
pawn Код:
ChangeHouse[ChangeHouse[playerid][hProdaet]][hPokypaet] = INVALID_PLAYER_ID;
Должно быть так:
pawn Код:
ChangeHouse[playerid][hPokypaet] = INVALID_PLAYER_ID;



Re: Ошибки крашдетектера. - gensek4 - 03.03.2015

А тут в чем дело?

PHP код:
12:13:35] [debug] Run time error 4: "Array index out of bounds"
[12:13:35] [debug]  Accessing element at negative index -1
[12:13:35] [debug] AMX backtrace:
[
12:13:35] [debug] #0 00105d80 in public OnPlayerPickUpPickup (playerid=126, pickupid=-1) at C:\Users\Евгений\Desktop\Мод\pawno\Samp GRP\gamemodes\edit.pwn:16747 
PHP код:
if(!IsPlayerInRangeOfPoint(playerid, 7.0, PickupInfo[pickupid][PickX], PickupInfo[pickupid][PickY], PickupInfo[pickupid][PickZ])) return true; // строчка 16747 



Re: Ошибки крашдетектера. - Stepashka - 03.03.2015

Вышел за пределы массива.
Очевидно же что в массиве не может быть индекса -1. Он тебе даже дословно об этом написал: [12:13:35] [debug] Accessing element at negative index -1 .


Re: Ошибки крашдетектера. - gensek4 - 03.03.2015

Это я заметил по иду пикапа (-1), а откуда взялся пикап с индексом -1?