Ошибки крашдетектера.
#1

PHP код:
[02:59:21] [debugRun 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] [debugAMX 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] == || IsPlayerNPC(playerid) || !IsPlayerConnected(playerid)) return true;
    new 
Float:distance2 400;
    new 
Float:currentPos], Float:distance;
     
GetPlayerPosplayeridcurrentPos], currentPos], currentPos] );
      if(
IsPlayerInAnyVehicle(playerid)) distance2 120;
      else 
distance2 80;
    
distance floatroundGetPlayerDistanceFromPointplayeridPlayerInfoplayerid ][ pPos_x ], PlayerInfoplayerid ][ pPos_y ], PlayerInfoplayerid ][ pPos_z] ) );
    if(
GetPVarInt(playerid"AntiBreik") == && !GetPVarInt(playerid,"AutoShop") && GetPVarInt(playerid"AFK_Time") < && PlayerInfo[playerid][pAlcoInvenxua] == 0)
    {
         if(
distance distance2CheatKick(playerid,7);
    }
    if(
GetPVarInt(playerid"AntiBreik") == 0)
    {
        
PlayerInfoplayerid ][ pPos_x ] = currentPos];
         
PlayerInfoplayerid ][ pPos_y ] = currentPos];
          
PlayerInfoplayerid ][ pPos_z ] = currentPos];
    }
    if(
GetPlayerWeapon(playerid) > && GetPlayerAmmo(playerid) == && Weapons[playerid][GetPlayerWeapon(playerid)] == && GetPVarInt(playerid"GunCheck") < gettime()) CheatKick(playerid,8); // на эту строчку ругается (25023)
    
if(GetPVarInt(playerid"GunCheck") < gettime())
    {
        new 
weaponidammo;
        for (new 
it 1it 11it++)
        {
            
GetPlayerWeaponData(playeriditweaponidammo);
            if(
ammo Weapons[playerid][weaponid]) CheatKick(playerid,8);
            else if(
ammo Weapons[playerid][weaponid]) Weapons[playerid][weaponid] = ammo;
        }
    }
    new 
FloatHeal;
    if(
GetPVarInt(playerid,"HealthSetTime") <= 0)
    {
           
GetPlayerHealth(playeridHeal);
           if(
PlayerHealth[playerid] < HealSetPlayerHealth(playeridPlayerHealth[playerid]);
           else 
PlayerHealth[playerid] = Heal;
    }
    else 
SetPVarInt(playerid,"HealthSetTime",GetPVarInt(playerid,"HealthSetTime")-1);
    if(
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACKCheatKick(playerid,9);
    if((
GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) && PlayerInfo[playerid][pAlcoInvenxua] <= 0) return CheatKick(playerid,1);
    new 
Float:AntibronNew;
    
GetPlayerArmour(playeridAntibronNew);
    if(
PlayerInfo[playerid][pMember] <= && AntibronNew 50) { SetPlayerArmourAC(playerid0); }
    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(playeridiNewPlayerAmmo[playerid], iPlayerAmmo[playerid]); SetPVarInt(playerid"GunCheck"gettime() + 2);
        
iPlayerAmmo[playerid] = iNewPlayerAmmo[playerid];
    }
    new 
animlib[30], animname[30];
    
GetAnimationName(GetPlayerAnimationIndex(playerid), animlibsizeof(animlib), animnamesizeof(animname));
    if(
SpeedVehicle(playerid) > 140 && strcmp(animlib"SWIM"true) == && strcmp(animname"SWIM_crawl"true) == && PlayerInfo[playerid][pAlcoInvenxua] == && !IsPlayerInAnyVehicle(playerid)) CheatKick(playerid,2);
    if(
SpeedVehicle(playerid) > 179 && strcmp(animlib"PARACHUTE"true) == && strcmp(animname"FALL_SKYDIVE_ACCEL"true) == && PlayerInfo[playerid][pAlcoInvenxua] == && !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(strsizeof(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(strsizeof(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] >= 2000000001PlayerInfo[playerid][pBank] = 2000000000SendClientMessage(playerid,COLOR_WHITE,"У вас лимит {ffa500}банковских средств{FFFFFF}, больше {ffa500}2 млд. $ -{FFFFFF} нельзя!");
    if(
TheifTime[playerid] > 0)
    {
         if(
ProxDetectorS(2.0playeridTheifRobID[playerid]))
           {
            
TheifTime[playerid] --;
            if(!
TheifTime[playerid])
            {
                if(
TheifCount[playerid] < 8)
                {
                    
SetPlayerRandomKey(playeridTheifKey[playerid], false);
                    
ShowPlayerActionBand(playeridTheifCount[playerid], 8);
                }
            }
        }
        else
        {
              
CheckRobPlayer(playerid);
            
TogglePlayerControllable(playeridtrue);
        }
    }
    return 
true;

stock Fresh:
PHP код:
stock Fresh()
{
    new 
newhour,newminute,newsecond;
    
gettime(newhournewminutenewsecond);
    if ((
newhour ghour) || (newhour == && ghour == 23))
    {
        new 
time[64];
        
format(time,sizeof(time), "Ñåé÷àñ âðåìåíè %d:00 ÷àñîâ",newhour);
        
ABroadCast(COLOR_LIGHTRED,time,6);
        
ghour newhour;
        
PayDay();
        
SetWorldTime(newhour);
    }
    if(
adverttime 0adverttime--;
    if(
gAdvertTime 0gAdvertTime--;
    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 0gAdvertCount--;
        }
    }
    if(
hitmansgatetime 0)
    {
        
hitmansgatetime--;
        if(
hitmansgatetime == 0MoveObject (hitmansgate, -1195.4439697,-1038.7869873,130.99800112);
    }
    new 
stringdate[30],year,month,day,hours,minutes,seconds;
    
getdate(yearmonthday);
    
gettime(hoursminutesseconds);
    
format(stringdatesizeof stringdate"%d-%s%d-%s%d %02d:%02d:%02d"day, ((month 10) ? ("0") : ("")), month, (year 10) ? ("0") : (""), yearhoursminutesseconds);
    
TextDrawSetString(Datumstringdate);
    for(new 
=0;i<sizeof(FrakCD);i++)
    {
        if(
FrakCD[i] > 0)
        {
            
FrakCD[i] --;
            if(
FrakCD[i] == 0SendFamilyMessage(i,COLOR_LIGHTRED,"[F] Âàøà áàíäà ñíîâà ìîæåò ó÷àñòâîâàòü â çàõâàòå çîí");
        }
    }
    if(
TimerPaintBall && (StartPaintBall == || StartPaintBall == 2)) TimerPaintBall--;
    if(!
TimerPaintBall && StartPaintBall == 1)
    {
        
StartPaintBall 2;
        
TimerPaintBall TIME_PAINTBALL;
        
SendClientMessageToAll(COLOR_YELLOW3"SMS îò ÑÌÈ: Ìàò÷ ïî ïåéíòáîëó íà÷àëñÿ, ïðîäîëæèòåëüíîñòü 10 ìèíóò.");
        foreach (new 
Player)
        {
            if(
TeamPain[i] != 0GameTextForPlayer(i,"~y~[START]"20004);
        }
    }
    if(
TimerPaintBall == && StartPaintBall == 1)
    {
        if(
RedPlayer == || BluePlayer == 0)
        {
            foreach (new 
Player)
            {
                if(
TeamPain[i] != 0TeamPain[i] = 0;
            }
            
SendClientMessageToAll(COLOR_YELLOW3"SMS îò ÑÌÈ: Ìàò÷ ïî ïåéíòáîëó îòìåíåí èç çà íåäîñòàòêà ó÷àñòíèêîâ.");
            
RedPlayer 0BluePlayer 0;
            
StartPaintBall 0;
        }
        else
        {
            foreach (new 
Player)
            {
                if(
TeamPain[i] == || !gPlayerLogged[i]) continue;
                new 
str[28];
                
format(str,sizeof(str),"~r~TEAM RED: ~w~%d",RedScore);
                
TextDrawSetString(RedTeamstr);
                
TextDrawShowForPlayer(iRedTeam);
                
format(str,sizeof(str),"~b~TEAM BLUE: ~w~%d",BlueScore);
                
TextDrawSetString(BlueTeamstr);
                
TextDrawShowForPlayer(iBlueTeam);
                
TogglePlayerControllable(i0);
                
SetPVarInt(i,"DMWarning",5);
                
ResetWeapons(i);
                
SetPlayerInterior(i0);
                
SetPlayerArmourAC(i0);
                
SetPlayerHealthAC(i100);
                new 
spawn random(6);
                if(
TeamPain[i] == 1)
                {
                    
SetPPos(iSpawnBlueTeam[spawn][0],SpawnBlueTeam[spawn][1],SpawnBlueTeam[spawn][2]);
                    
SetPlayerInterior(i,0);
                    
PlayerInfo[i][pInt] = 0;
                    
SetPlayerVirtualWorld(i,0);
                    if(
PlayerInfo[i][pSex] == 1SetPlayerSkin(i21);
                    if(
PlayerInfo[i][pSex] == 2)  SetPlayerSkin(i41);
                    
SetPlayerColor(iCOLOR_BLUE);
                }
                if(
TeamPain[i] == 2)
                {
                     
SetPPos(iSpawnRedTeam[spawn][0],SpawnRedTeam[spawn][1],SpawnRedTeam[spawn][2]);
                     
SetPlayerInterior(i,0);
                     
PlayerInfo[i][pInt] = 0;
                     
SetPlayerVirtualWorld(i,0);
                     if(
PlayerInfo[i][pSex] == 1SetPlayerSkin(i19);
                     if(
PlayerInfo[i][pSex] == 2)  SetPlayerSkin(i40);
                     
SetPlayerColor(iCOLOR_RED);
                 }
            }
        }
    }
    if(
StartPaintBall == && !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",BlueScoreRedScore);
        
strcat(strpaintball,string);
        foreach (new 
Player)
        {
            if(
TeamPain[i] == 0) continue;
            
SetPPos(i1557.7139,-1790.7910,13.5469);
            
SetPlayerFacingAngle(i269.1077);
            if(
PlayerInfo[i][pMember] != 0SetPlayerSkin(iPlayerInfo[i][pModel]);
            else 
SetPlayerSkin(iPlayerInfo[i][pChar]);
            
ResetWeapons(i);
            
SetPlayerHealthAC(i,100);
            
SetPlayerToTeamColor(i);
            
TextDrawHideForPlayer(iBlueTeam);
            
TextDrawHideForPlayer(iRedTeam);
            
number++;
            if(
TeamPain[i] == 1)
            {
                if(
BlueScore RedScore)
                {
                    
SendClientMessage(iCOLOR_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(iCOLOR_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 
hourminutesecond;
    
gettime(hourminutesecond);
    for(new 
i;i<MAX_PLAYERS;i++)
    {
        if(
gReconnectTime[i]) gReconnectTime[i]--;
        if(!
IsPlayerConnected(i)) continue;
        if(
GetPVarInt(i"AntiBreik") > 0SetPVarInt(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] > 0PlayerInfo[i][pSatiety]--;
            if(
PlayerInfo[i][pSatiety] == 49 || PlayerInfo[i][pSatiety] == 24SendMes(i,COLOR_BLUE"Âû ïðîãîëîäàëèñü! Ñîñòîÿíèå ñûòîñòè %i ïðîöåíòîâ!",PlayerInfo[i][pSatiety]);
            
GetPlayerHealth(ihp);
            if(
PlayerInfo[i][pSatiety] < 50SetPlayerHealthAC(ihp 1);
            else if(
PlayerInfo[i][pSatiety] < 25SetPlayerHealthAC(ihp 2);
        }
        if(
AntiBan[i] > 0AntiBan[i]--;
        if(
noooc[1] > 0noooc[1]--;
        if(!
PlayerToPoint(40.0,i,264.1425,77.4712,1001.0391) && PlayerInfo[i][pJailed] == || PlayerInfo[i][pJailed] == || PlayerInfo[i][pJailed] == 3)
        {
            
SetPlayerInterior(i6);
            
PlayerInfo[i][pInt] = 6;
            
SetPPos(i,264.1425,77.4712,1001.0391);
            
SetPlayerFacingAngle(i263.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(i0);
            
PlayerInfo[i][pInt] = 0;
            
SetPPos(i,2543.0537,-8141.8242,72.6420);
            
SetPlayerFacingAngle(i268.7242);
            
PlayerInfo[i][pJailed] = 4;
            
SendClientMessage(i,COLOR_GREY,"Çà ïîâòîðíóþ ïîïûòêó ñáåæàòü èç òþðüìû âû ìîæåòå ïîëó÷èòü áàí.");
        }
        if(
TimeBox[i] > 0)
        {
            
TimeBox[i]--;
            
format(stringer1sizeof(stringer1), "~g~%d",TimeBox[i]);
            
GameTextForPlayer(istringer130006);
            if(
TimeBox[i] == 0)
            {
                
GameTextForPlayer(i"~r~Fight!"30006);
                
TogglePlayerControllable(i1);
            }
        }
        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(i90.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(iCOLOR_RED"~~~~~~~~ Ó âàñ íà÷àëàñü ëîìêà ~~~~~~~~");
                    
SendClientMessage(iCOLOR_WHITE"(( Âûçâàòü ìåäèêà - /call => [2] Ñêîðàÿ ïîìîùü    ||    Ïðèíÿòü íàðêîòèê - /usedrugs ))");
                    
send[i] = 1;
                }
                if(
GetPlayerState(i) == PLAYER_STATE_ONFOOTApplyAnimation(i"CRACK""CRCKDETH1"4.011110),send[i] = 1;
            }
        }
        if(
bankdoortime[i] > && bankdoors == 1)
        {
            
bankdoortime[i]--;
            if(
bankdoortime[i] == 1bankdoors 0,MoveObject (DoorOpen[0], 2144.17,1627.082,994.26200.3);
        }
        if(
SwatDoor[0][i] > 0)
        {
            
SwatDoor[0][i]--;
            if(
SwatDoor[0][i] == 1MoveObject(gatevorota,777.56915283,-1384.85498047,14.397315983.0);
        }
        if(
SwatDoor[1][i] > 0)
        {
            
SwatDoor[1][i]--;
            if(
SwatDoor[1][i] == 1MoveObject(gatevorota2,781.87298584,-1330.21044922,12.706480033.0);
        }
        if(
GetPVarInt(i,"DMWarning") > 0)
        {
            
SetPVarInt(i,"DMWarning",GetPVarInt(i,"DMWarning")-1);
            if(
GetPVarInt(i,"DMWarning") <= 0TogglePlayerControllable(i1);
        }
        if(
lighttime[i] > 0)
        {
            
lighttime[i]--;
            if(
lighttime[i] == 1lights1 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(iMusicU[4], MusicU[1], MusicU[2], MusicU[3]))
            {
                if(!
GetPVarInt(i,"Music"))
                {
                    
SetPVarInt(i,"Music",1);
                    
PlayAudioStreamForPlayer(iUMusicMusicU[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] == && RB[i] != 0)
            {
                
DestroyDynamicObject(BlockPost[RB[i]]);
                
DestroyDynamic3DTextLabel(Block3D[RB[i]]);
                
rbtime[i] = 0;
                
RB[i] = 0;
            }
        }
        if(
GetPVarInt(i,"ProductTime") > && GetPVarInt(i"ProductID") > 0)
        {
            
SetPVarInt(i,"ProductTime",GetPVarInt(i,"ProductTime")-1);
            
format(stringer1,32,"~r~%d",GetPVarInt(i,"ProductTime"));
            
GameTextForPlayer(istringer120006);
            if(
GetPVarInt(i,"ProductTime") == 0)
            {
                
SendClientMessage(iCOLOR_LIGHTRED"Âðåìÿ èñòåêëî, âûïîëíåíèå çàêàçà îòìåíåíî");
                
ProductInfo[GetPVarInt(i"ProductID")][pStatus] = false;
                
DeletePVar(i"ProductID");
            }
        }
        
GetPosPickup(i);
        
onlinecheck[i]++;
        if(
onlinecheck[i] >= 60PlayerInfo[i][pDayOnline]++, onlinecheck[i] = 0;
        if(
gov[i] > 0gov[i]--;
        if(
PlayerInfo[i][pContract] > 0PlayerInfo[i][pContract]--;
        if(
PlayerInfo[i][pGunfbiTime] > 0PlayerInfo[i][pGunfbiTime]--;
        if(
PlayerInfo[i][pGun51Time] > 0PlayerInfo[i][pGun51Time]--;
        if(
PlayerInfo[i][pGunlspdTime] > 0PlayerInfo[i][pGunlspdTime]--;
        if(
PlayerInfo[i][pGunaviaTime] > 0PlayerInfo[i][pGunaviaTime]--;
        if(
PlayerInfo[i][pFightTime] > 0PlayerInfo[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(caridcxcycz);
                new 
randd random(12);
                if(
PlayerToPoint(4.0icxcycz))
                {
                    switch(
randd)
                    {
                    case 
0..4:
                        {
                            
UnLockCar(carid);
                            
IsLocked[carid] = 0;
                            
TogglePlayerControllable(i1);
                            
GameTextForPlayer(i"~g~Un Locked"50006);
                            if(
IsACop(i)) format(stringer1sizeof(stringer1), "Çàêîííèê %s óñïåøíî âçëàìûâàåò çàìîê òðàíñïîðòà"PlayerInfo[i][pNames]);
                            else 
format(stringer1sizeof(stringer1), "Íåçíàêîìåö óñïåøíî âçëàìûâàåò çàìîê òðàíñïîðòà");
                            
ProxDetector(30.0istringer1COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                    default:
                        {
                            
TogglePlayerControllable(i1);
                            
PlayerInfo[i][pOtmbI4ka]--;
                            if(
IsACop(i)) format(stringer1sizeof(stringer1), "Çàêîííèê %s íå ñìîã âçëîìàòü çàìîê òðàíñïîðòà"PlayerInfo[i][pNames]);
                            else 
format(stringer1sizeof(stringer1), "Íåçíàêîìåö íå ñìîã âçëîìàòü çàìîê òðàíñïîðòà");
                            
ProxDetector(30.0istringer1COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                    }
                }
            }
        }
        new 
str[30];
        if(
GetPVarInt(i,"AFK_Tick") > 10000SetPVarInt(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 != 471ApplyAnimation(i"FAT""IDLE_tired",4.0,1,0,0,0,0,1);
            
SetPVarInt(i,"AntiDM",GetPVarInt(i,"AntiDM")-1);
            if(
GetPVarInt(i,"AntiDM") == 0ClearAnimations(i);
        }
        if(
crashcuff[i] > 0crashcuff[i]--;
        if(
robbankstime[i] > && 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(i10580.00.00.0);
                            
WantedPoints[i]+=4;
                            
PlayerInfo[i][pWanted]+=4;
                            
PlayerInfo[i][pCash] += kaznarob;
                            
kazna -= kaznarob;
                            
format(stringer1sizeof(stringer1), "~g~+$%d"kaznarob);
                            
GameTextForPlayer(istringer150001);
                            
SetPlayerExtra(i,255"Âçëîì áàíêîâñêîãî ñåéôà");
                            
TogglePlayerControllable(i1);
                            
format(stringer1sizeof(stringer1), "Íåçíàêîìåö âçëàìûâàåò áàíêîâñêèé ñåéô íà %d âèðò.",kaznarob);
                            
ProxDetector(30.0istringer1COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
ClearAnimations(i1);
                            
robbanks 0;
                            
format(stringer1,sizeof(stringer1),"{C2A2DA}Êàçíà øòàòà: {FFD700}%d\n{C2A2DA}Íàëîã ãîñóäàðñòâà: {FFD700}%d\n{C2A2DA}Ïîæåðòâîâàòü äåíåã ââåäèòå '/putkazna'"kaznanalog);
                            
Update3DTextLabelText(kaznameria0xC2A2DAFFstringer1);
                        }
                        else
                        {
                            new 
kaznarob kazna/20;
                            
PlayerInfo[i][pRobTime] = 10800;
                            
ApplyAnimation(i,"ROB_BANK","CAT_Safe_End",4.1,0,1,1,0,0);
                            
PlayerPlaySound(i10580.00.00.0);
                            
WantedPoints[i]+=4;
                            
PlayerInfo[i][pWanted]+=4;
                            
PlayerInfo[i][pCash] += kaznarob;
                            
kazna -= kaznarob;
                            
format(stringer1sizeof(stringer1), "~g~+$%d",kaznarob);
                            
GameTextForPlayer(istringer150001);
                            
format(stringer1sizeof(stringer1), "{9ACD32}Ñðî÷íûå íîâîñòè: Íåçíàêîìåö âûòàùèë èç áàíêîâñêîãî ñåéôà %d âèðò!",kaznarob);
                            
SendClientMessageToAll(COLOR_LIGHTREDstringer1);
                            
SetPlayerExtra(i,255"Âçëîì áàíêîâñêîãî ñåéôà");
                            
format(stringer1sizeof(stringer1), "Íåçíàêîìåö âçëàìûâàåò áàíêîâñêèé ñåéô íà %s âèðò."kaznarob);
                            
ProxDetector(30.0istringer1COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
TogglePlayerControllable(i1);
                            
ClearAnimations(i1);
                            
robbanks 0;
                            
format(stringer1,sizeof(stringer1),"{C2A2DA}Êàçíà øòàòà: {FFD700}%d\n{C2A2DA}Íàëîã ãîñóäàðñòâà: {FFD700}%d\n{C2A2DA}Ïîæåðòâîâàòü äåíåã ââåäèòå '/putkazna'"kaznanalog);
                            
Update3DTextLabelText(kaznameria0xC2A2DAFFstringer1);
                        }
                    }
                default:
                    {
                        if(
lights1 == 1)
                        {
                            
ApplyAnimation(i,"ROB_BANK","CAT_Safe_End",4.1,0,1,1,0,0);
                            
PlayerPlaySound(i10580.00.00.0);
                            
SendClientMessage(i,COLOR_GREY,"Ïîïðîáóéòå åùå ðàç. Ýëåêòðè÷åñòâî áàíêà îòêëþ÷åíî, ñïåøèòå!");
                            
TogglePlayerControllable(i1);
                            
ClearAnimations(i1);
                            
robbanks 0;
                            
format(stringer1sizeof(stringer1), "Íåçíàêîìåö íåóäà÷íî âçëàìûâàåò áàíêîâñêèé ñåéô.");
                            
ProxDetector(30.0istringer1COLOR_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(i10580.00.00.0);
                            
SendClientMessage(i,COLOR_GREY,"Ïîïðîáóéòå åùå ðàç.");
                            
WantedPoints[i]+=1;
                            
PlayerInfo[i][pWanted]+=1;
                            
SetPlayerExtra(i,255"Ïîïûòêà âçëîìà áàíêîâñêîãî ñåéôà.");
                            
format(stringer1sizeof(stringer1), "Íåçíàêîìåö íåóäà÷íî âçëàìûâàåò áàíêîâñêèé ñåéô.");
                            
ProxDetector(30.0istringer1COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                            
TogglePlayerControllable(i1);
                            
ClearAnimations(i1);
                            
robbanks 0;
                        }
                    }
                }
            }
        }
        if(
hour >= 12 && minute == 10 && second == 0startnarko[i] = 1;
        
DeletePVar(i,"NoAB");
        if(
PlayerInfo[i][pDrugtime] > 0PlayerInfo[i][pDrugtime]--;
        if(
PlayerInfo[i][pRobTime] > 0PlayerInfo[i][pRobTime]--;
        if(
PlayerInfo[i][pReportTime] > 0PlayerInfo[i][pReportTime]--;
        if(
PlayerInfo[i][pAutoTime] > 0PlayerInfo[i][pAutoTime]--;
        if(
clearanim[i] > 0)
        {
            
clearanim[i] --;
            if(
clearanim[i] == 0ApplyAnimation(i,"CARRY","crry_prtial",4.0,0,0,0,0,0,1);
        }
        if(
PlayerInfo[i][pMuteTime] > && 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_DRIVERUpdateSpeedometr(i);
        
//------------------------------------------------------------------------------
        
if(IsPlayerConnected(i))
        {
            if(
PlayerInfo[i][pJailed] > 0)
            {
                if(
PlayerInfo[i][pJailTime] > 0PlayerInfo[i][pJailTime]--;
                if(
PlayerInfo[i][pJailTime] <= 0)
                {
                    if(
PlayerInfo[i][pJailed] == 1)
                    {
                        if(
PlayerInfo[i][pMestoJail] == 1)
                        {
                            
SetPlayerInterior(i0);
                            
PlayerInfo[i][pInt] = 0;
                            
SetPPos(i,1547.11,-1675.76,13.94);//Òþðüìà
                            
SetPlayerFacingAngle(i95.0636);
                        }
                        if(
PlayerInfo[i][pMestoJail] == 2)
                        {
                            
SetPlayerInterior(i0);
                            
PlayerInfo[i][pInt] = 0;
                            
SetPPos(i,-1607.1873,721.3649,12.2721);//Òþðüìà
                            
SetPlayerFacingAngle(i2.3026);
                        }
                        if(
PlayerInfo[i][pMestoJail] == 3)
                        {
                            
SetPlayerInterior(i0);
                            
PlayerInfo[i][pInt] = 0;
                            
SetPPos(i,2334.8467,2454.9456,14.9688);//Òþðüìà
                            
SetPlayerFacingAngle(i115.7874);
                        }
                    }
                    else if(
PlayerInfo[i][pJailed] == 4)
                    {
                        
SetPlayerInterior(i0);
                        
PlayerInfo[i][pInt] = 0;
                        
SetPPos(i,1547.11,-1675.76,13.94);//Òþðüìà
                        
SetPlayerFacingAngle(i95.0636);
                    }
                    
PlayerInfo[i][pJailTime] = 0;
                    
PlayerInfo[i][pJailed] = 0;
                    
SendClientMessage(iCOLOR_ISPOLZUY,"Âû çàïëàòèëè ñâîé äîëã îáùåñòâó, òåïåðü âû ñâîáîäíû!");
                    
PlayerInfo[i][pMestoJail] = 0;
                    
WantedLevel[i] = 0;
                    
PlayerInfo[i][pWanted] = 0;
                    
WantedPoints[i] = 0;
                    
SetPlayerWantedLevel(i0);
                    
SetPlayerVirtualWorld(i0);
                    
GameTextForPlayer(i"~g~Freedom"50001);
                    
SetPlayerToTeamColor(i);
                }
            }
            if(
JobCarTime[i] <= 16 && JobCarTime[i] >= 1)
            {
                
JobCarTime[i]--;
                
format(stringer1,sizeof(stringer1),"~r~%d",JobCarTime[i] - 1);
                
GameTextForPlayer(istringer120006);
            }
            if(
Tazer[i] == 1)
            {
                if(
TazerTime[i] <= 0Tazer[i] = 0;
                else 
TazerTime[i] -= 1;
            }
            if(
TieTime[i] > 0)
            {
                
TieTime[i]--;
                if(
TieTime[i] == 0gag[i] = 0,SendClientMessage(iCOLOR_GREY"Êëÿï ñòàë ìîêðûì è âûïàë, âû ñíîâà ìîæåòå ãîâîðèòü!");
            }
            if(
PlayerCuffed[i] == 1)
            {
                if(
PlayerCuffedTime[i] <= 0)
                {
                    
TogglePlayerControllable(i1);
                    
PlayerCuffed[i] = 0;
                    
PlayerCuffedTime[i] = 0;
                }
                else 
PlayerCuffedTime[i] -= 1;
            }
            if(
PlayerCuffed[i] == 2)
            {
                if(
PlayerCuffedTime[i] <= 0)
                {
                    
TogglePlayerControllable(i1);
                    
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 
Player)
            {
                
PlayerInfo[i][pHotvet] = 0;
                
PlayerInfo[i][pDayOnline] = 0;
            }
        }
        if(
minute == 32 && second == 00)
        {
            for(new 
0sizeof(HouseInfo); h++)
            {
                if(
HouseInfo[h][hKlass] == && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=300kazna += 300;
                    if(
HouseInfo[h][hTakings] > 16800HouseInfo[h][hTakings] = 16800;
                }
                if(
HouseInfo[h][hKlass] == && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=600kazna += 600;
                    if(
HouseInfo[h][hTakings] > 33600HouseInfo[h][hTakings] = 33600;
                }
                if(
HouseInfo[h][hKlass] == && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=900kazna += 900;
                    if(
HouseInfo[h][hTakings] > 50400HouseInfo[h][hTakings] = 50400;
                }
                if(
HouseInfo[h][hKlass] == && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=1200kazna += 1200;
                    if(
HouseInfo[h][hTakings] > 67200HouseInfo[h][hTakings] = 67200;
                }
                if(
HouseInfo[h][hKlass] == && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
                
{
                    
HouseInfo[h][hTakings] -=1500kazna += 1500;
                    if(
HouseInfo[h][hTakings] > 84000HouseInfo[h][hTakings] = 84000;
                }
                if(
HouseInfo[h][hTakings] <= && 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(playeriddCOLOR_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'",housecashHouseInfo[h][hOwner]);
                        
mysql_function_query(connectsmysql_query_false"""");
                    }
                    
HouseInfo[h][hHel] = 0;
                    
HouseInfo[h][hLock] = 1;
                    
HouseInfo[h][hOwned] = 0;
                    
strmid(HouseInfo[h][hOwner], "The State"0strlen("The State"), 255);
                    
SaveHouse(h);
                }
                
HouseInfo[h][hRobhouse] = false;
                
BuyHouse(h);
            }
        }
    }
    if(
BizzWarTimeAll 0BizzWarTimeAll --;
    if(
BizzWars == false && BizzWarsNumber == -1) return true;
    if(
BizzWarTime 0)
    {
        
BizzWarTime --;
        
CheckBizWar();
    }
    else 
FinishBizWar();
    return 
true;

TimerUpdate:
PHP код:
publicsTimerUpdate() Fresh(); // ошибка (строчка: 21731) 
Reply


Messages In This Thread
Ошибки крашдетектера. - by gensek4 - 02.03.2015, 01:34
Re: Ошибки крашдетектера. - by ZiGGi - 02.03.2015, 01:53
Re: Ошибки крашдетектера. - by gensek4 - 02.03.2015, 02:06
Re: Ошибки крашдетектера. - by ZiGGi - 02.03.2015, 02:57
Re: Ошибки крашдетектера. - by gensek4 - 02.03.2015, 03:07
Re: Ошибки крашдетектера. - by gensek4 - 02.03.2015, 08:09
Re: Ошибки крашдетектера. - by ZiGGi - 02.03.2015, 11:44
Re: Ошибки крашдетектера. - by gensek4 - 03.03.2015, 09:22
Re: Ошибки крашдетектера. - by Stepashka - 03.03.2015, 09:43
Re: Ошибки крашдетектера. - by gensek4 - 03.03.2015, 09:54

Forum Jump:


Users browsing this thread: 1 Guest(s)