Добро пожаловать на Pro Pawn - Портал о PAWN-скриптинге.
Показано с 1 по 6 из 6

Тема: По моду

  1. #1
    Аватар для ALIT13
    Пользователь

    Статус
    Оффлайн
    Регистрация
    24.05.2014
    Сообщений
    346
    Репутация:
    2 ±

    По моду

    вот я играю играю , а у меня вдруг и мод отключается почему ?

  2. #2
    Аватар для Osetin
    •Администратор•

    Статус
    Оффлайн
    Регистрация
    26.03.2013
    Адрес
    ♔Osetia, Vladikavkaz♔
    Сообщений
    3,432
    Репутация:
    1093 ±
    Тут экстрасенсов нету, подробнее опишите, после чего именно выключается и тд..

  3. #3
    Аватар для ALIT13
    Пользователь

    Статус
    Оффлайн
    Регистрация
    24.05.2014
    Сообщений
    346
    Репутация:
    2 ±
    чё тут не понятно , я запустил мод играю , играю пару минут прошло , у меня samp-server сам отключается автоматически , я даже не знал просто играю у меня в игре всё зависает я выхожу смотрю , а samp-server отключён !!!

  4. #4
    Аватар для ALIT13
    Пользователь

    Статус
    Оффлайн
    Регистрация
    24.05.2014
    Сообщений
    346
    Репутация:
    2 ±
    PHP код:
    [02:08:27] [debugRun time error 4"Array index out of bounds"
    [02:08:27] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:27] [debugAMX backtrace:
    [
    02:08:27] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:28] [debugRun time error 4"Array index out of bounds"
    [02:08:28] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:28] [debugAMX backtrace:
    [
    02:08:28] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:29] [debugRun time error 4"Array index out of bounds"
    [02:08:29] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:29] [debugAMX backtrace:
    [
    02:08:29] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:31] [debugRun time error 4"Array index out of bounds"
    [02:08:31] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:31] [debugAMX backtrace:
    [
    02:08:31] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:32] [debugRun time error 4"Array index out of bounds"
    [02:08:32] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:32] [debugAMX backtrace:
    [
    02:08:32] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:33] [debugRun time error 4"Array index out of bounds"
    [02:08:33] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:33] [debugAMX backtrace:
    [
    02:08:33] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:34] [debugRun time error 4"Array index out of bounds"
    [02:08:34] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:34] [debugAMX backtrace:
    [
    02:08:34] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:35] [debugRun time error 4"Array index out of bounds"
    [02:08:35] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:35] [debugAMX backtrace:
    [
    02:08:35] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:36] [debugRun time error 4"Array index out of bounds"
    [02:08:36] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:36] [debugAMX backtrace:
    [
    02:08:36] [debug#0  000b02d0 in public AutoRepair () from new.amx
    [02:08:37] [debugRun time error 4"Array index out of bounds"
    [02:08:37] [debug]   Accessing element at index 200 past array upper bound 199
    [02:08:37] [debugAMX backtrace:
    [
    02:08:37] [debug#0  000b02d0 in public AutoRepair () from new.amx 
    Вот как исправить вод код
    PHP код:
    public AutoRepair()
    {
        
    GetMoney();
        
    GzCheck();
        
    UpdateArmsklad();
        for(new 
    playerid 0playerid MAX_PLAYERSplayerid++)
        {
            if(
    casinSTOL[playerid])SelectTextDraw(playerid0x0088FFFF);
            if(
    AntiFloodChat[playerid])AntiFloodChat[playerid] --;
            if(
    AntiFloodComa[playerid])AntiFloodComa[playerid] --;
            
    AFKtime[playerid] ++;
            if(
    AFKtime[playerid] > 3)
            {
                new 
    mes[25];
                
    format(mes,sizeof(mes),"[AFK] [%d ñåêóíä]",AFKtime[playerid]);
                
    SetPlayerChatBubble(playerid,mes,0x33AA33AA,5.0,1200);
            }
            if(
    AFKtime[playerid] > 700 && !PlayerInfo[playerid][pAdmin])
            {
                
    SendClientMessage(playerid,COLOR_RED,"Âû áûëè îòñîåäåíåíû îò ñåðâåðà! (AFK)");
                
    J_Kick(playerid);
            }
            if(
    PlayerInfo[playerid][pJailed] > 0)
            {
                if(
    PlayerInfo[playerid][pJailTime] > 0PlayerInfo[playerid][pJailTime]--;
                if(
    PlayerInfo[playerid][pJailTime] <= 0)
                {
                       if(
    PlayerInfo[playerid][pJailed] == 1)
                    {
                        
    SetPlayerInterior(playerid6);
                        
    SetPlayerVirtualWorld(playerid1);
                        
    SetPlayerPos(playerid,244.1405,66.2978,1003.6406);
                        
    SetPlayerFacingAngle(playerid271.5287);
                        
    SCM(playerid, -1,"Âàø ñðîê ïðåáûâàíèÿ â òþðüìå - îêîí÷åí.");
                    }
                    
    PlayerInfo[playerid][pJailed] = 0;
                    
    PlayerInfo[playerid][pZvezd] = 0;
                    
    PlayerInfo[playerid][pJailTime] = 0;
                }
            }
            if(
    GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
             {
                  new 
    Float:ms = (SpeedVehicle(playerid)/8.6)/600;
                
    vMileage[GetPlayerVehicleID(playerid)] += ms;
            }
        }
         for(new 
    i=0i<GetMaxPlayers(); i++)
         {
              if(
    CellTime[i] > 0)
            {
                if (
    CellTime[i] == cchargetime)
                {
                    
    CellTime[i] = 1;
                    if(
    Mobile[Mobile[i]] == iCallCost[i] = CallCost[i]+callcost;
                }
                
    CellTime[i] = CellTime[i] +1;
                if (
    Mobile[Mobile[i]] == 255 && CellTime[i] == 5)
                {
                       if(
    IsPlayerConnected(Mobile[i]))
                    {
                        new 
    called[MAX_PLAYER_NAME];
                        
    GetPlayerName(Mobile[i], calledsizeof(called));
                        
    format(YCMDstrsizeof(YCMDstr), "Ó %s çâîíèò òåëåôîí"called);
                        for(new 
    id 0id MAX_PLAYERSid ++)
                        {
                             new 
    Float:x,Float:y,Float:z;
                            
    GetPlayerPos(i,x,y,z);
                            if(
    IsPlayerInRangeOfPoint(i,10,x,y,z)) PlayerPlaySound(id10520.00.00.0);
                        }
                        
    RingTone[Mobile[i]] = 10;
                        
    ProxDetector(30.0Mobile[i], YCMDstrCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                    }
                }
            }
            if(
    CellTime[i] == && CallCost[i] > 0)
            {
                
    format(YCMDstrsizeof(YCMDstr), "~w~CALL cost~n~~r~$%d",CallCost[i]);
                
    PlayerInfo[i][pBank] -= CallCost[i];
                
    GameTextForPlayer(iYCMDstr50001);
                
    CallCost[i] = 0;
            }
        }
        for(new 
    =0;i<100;i++)
        {
            if(
    GZSafeTime[i]>0)
            {
                
    GZSafeTime[i] --;
                
    CheckGangWar(i);
                if(
    GZSafeTime[i]==0)
                {
                    foreach (
    Playerd)
                    {
                        
    PlayerTextDrawHide(dGangWar[d]);
                     }
                 }
            }
        }

        for(new 
    =0;i<sizeof(FrakCD);i++)
        {
            if(
    FrakCD[i] >0)
            {
                
    FrakCD[i] --;
                if(
    FrakCD[i] == 0SendFamilyMessage(i,-1,"Âàøà áàíäà ñíîâà ìîæåò ó÷àñòâîâàòü â çàõâàòå");
            }
        }
        
    //==========================================================================
        
    for(new cc<3c++)
        {
            if(
    timeStol[c])
            {
                
    timeStol[c] --;
                new 
    str[7];
                
    format(strsizeof str,"~g~%d",timeStol[c]);
                foreach(new 
    Player)
                {
                     if(
    casinSTOL[i]-== c)GameTextForPlayer(istr12004);
                }
                  if(!
    timeStol[c])
                  {
                      new 
    maxs 0,cid = -1,pere;
                      
    Brosilo[c] = 0;
                      foreach(new 
    Player)
                      {
                           if(
    casinSTOL[i]-== c)
                           {
                               if(
    vipalo[i] == maxs)pere 1;
                             if(
    vipalo[i] > maxs)
                             {
                                 
    pere 0maxs vipalo[i]; cid i;
                            }
                        }
                     }
                    if(
    pere)
                    {
                        
    timeStol[c] = 30;
                        foreach(new 
    Player)
                          {
                               if(
    casinSTOL[i]-== c)
                               {
                                   if(
    vipalo[i] != maxs)
                                   {
                                       for(new 
    yy<5y++)
                                       {
                                        if(
    PlayeStol[c][y] == i)
                                        {
                                            
    TextDrawSetString(SostPlayer[c][y],"--");
                                            break;
                                        }
                                    }
                                    
    Igraet[c] --;
                                    
    vipalo[i] = 0;
                                 }
                                 else
                                 {
                                     for(new 
    yy<5y++)
                                     {
                                        if(
    PlayeStol[c][y] == i)
                                        {
                                            
    TextDrawSetString(SostPlayer[c][y],"++");
                                            break;
                                        }
                                    }
                                 }
                            }
                            
    vipalo[i] = 1;
                         }
    //
                    
    }
                    else
                    {
                        
    stavkaStol[c] = 0;
                        
    Igraet[c] = 0;
                        
    TextDrawSetString(BetBank[c],"Bet: 0~n~Bank: 0");
                        
    TextDrawSetString(SostPlayer[1][c],"--");
                          new 
    strin[70];
                          
    format(strinsizeof strin,"Èãðà çàâåðøåíà. Ïîáåäèòåëü %s",Name(cid));
                          foreach(new 
    Player) {
                            if(
    casinSTOL[i]-== c)SendClientMessage(i,0xA700D1FF,strin);
                            
    vipalo[i] = 0;
                        }
                        
    Givem(-1,cid, (BankStol[c]/100)*90);
                          
    format(strinsizeof strin,"Money: %d",PlayerInfo[cid][pCash]);
                        
    PlayerTextDrawSetString(cid,CasinMoney[cid],strin);
                          
    TextDrawSetString(SostPlayer[0][c],"--");    TextDrawSetString(SostPlayer[1][c],"--");
                          
    TextDrawSetString(SostPlayer[2][c],"--");    TextDrawSetString(SostPlayer[3][c],"--");
                          
    TextDrawSetString(SostPlayer[4][c],"--");
                        
    BankStol[c] = 0;

                    }
                }
            }
        }
        
    //==========================================================================
        
    for(new i=0i<GetMaxPlayers(); i++)
         {
             if(
    GetPVarInt(i,"Conv")) OnPlayerInConvoi(i);
             if(
    PlayerInfo[i][pMute] > 0PlayerInfo[i][pMute] -= 1;
            if(
    PlayerInfo[i][pMute] == 1send(i,"{34c924}Ìîë÷àíêà ñíÿòà");
            if(
    drtime[i] > 0)
            {
                
    drtime[i] = drtime[i] - 1;
            }
         }


  5. #5
    Аватар для L0ndl3m
    Пользователь

    Статус
    Оффлайн
    Регистрация
    19.10.2013
    Адрес
    Ярославль
    Сообщений
    1,366
    Репутация:
    774 ±
    Выложите инициализацию массива GZSafeTime.

  6. #6
    Аватар для ALIT13
    Пользователь

    Статус
    Оффлайн
    Регистрация
    24.05.2014
    Сообщений
    346
    Репутация:
    2 ±
    PHP код:
    new GZSafeTime[100]; 
    +++ вот ещё что-то
    PHP код:
    [03:06:31] [debugServer crashed while executing new.amx
    [03:06:31] [debugAMX backtrace:
    [
    03:06:31] [debug#0  native fputchar () [00405860] from samp-server.exe
    [03:06:31] [debugNative backtrace:
    [
    03:06:33] [debug#0  6735155f in Load () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\plugins\crashdetect.DLL
    [03:06:33] [debug#1  67352844 in Load () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\plugins\crashdetect.DLL
    [03:06:33] [debug#2  6735470e in Load () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\plugins\crashdetect.DLL
    [03:06:33] [debug#3  76b20746 in UnhandledExceptionFilter () from C:\Windows\system32\kernel32.dll
    [03:06:33] [debug#4  0049eef6 in ?? () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\samp-server.exe
    [03:06:33] [debug#5  00498331 in ?? () from C:\Users\Âîëøåáíèê\Desktop\new DM Role Play\samp-server.exe
    [03:06:33] [debug#6  76b0ed6c in BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll
    [03:06:33] [debug#7  7750377b in RtlInitializeExceptionChain () from C:\Windows\SYSTEM32\ntdll.dll
    [03:06:33] [debug#8  7750374e in RtlInitializeExceptionChain () from C:\Windows\SYSTEM32\ntdll.dll 
    Последний раз редактировалось ALIT13; 09.02.2015 в 22:51.

 

 

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •