Lost connection to the server.
#1

На локалке все работает нормально. Но на хостинге после того как я выхожу из дома или покупаю интерьер меня рестартит (сам клиент)
PHP Code:
else if(dialogid == HOUSE_ID+3)
    {
        if(
response)
        {
            new 
houseid = PlayerInfo[playerid][pHouse];
            new 
intnum = PlayerInteriorView[playerid]-1;
            if(
intnum == 0)
            {
                
intnum = 9;
            }
            if(
intnum == -1)
            {
                
intnum = 1;
            }
            new 
intprice = PlayerInteriorPrice[playerid];
            if(
BusinessInfo[HOUSE_BIZZ][bFunds] < intnum)
            {
                
ShowMenuForPlayer(HouseMenu, playerid);
                
SCM(playerid, COLOR_GREEN, "В магазине 'Всё для дома' не хватает мебели");
                return 
1;
            }
            if(
HouseInfo[houseid][hInterior] == intnum)
            {
                
ShowMenuForPlayer(HouseMenu, playerid);
                
SCM(playerid, COLOR_GREEN, "У тебя уже есть этот интерьер дома");
                return 
1;
            }
            if(
GetPlayerMoneyEx(playerid) < intprice)
            {
                
ShowMenuForPlayer(HouseMenu, playerid);
                
f(string, "У тебя не достаточно денег. Нужно{5BD93B} %d$", intprice);
                
SCM(playerid, COLOR_GREEN, string);
                return 
1;
            }
            
KillTimer(InteriorView[playerid]);
            
GetPlayerInteriorView[playerid] = false;
            
PlayerInteriorView[playerid] = 0;
            
TogglePlayerControllable(playerid, true);
            
GameTextForPlayer(playerid, "~n~", 1000, 3);
            
SetCameraBehindPlayer(playerid);
            
SetPlayerVirtualWorld(playerid, houseid);
            
PlayerInfo[playerid][pMir] = houseid;
            
GivePlayerMoneyEx(playerid, -intprice);
            
HouseInfo[houseid][hInterior] = intnum;
            
BusinessInfo[HOUSE_BIZZ][bBalance] += intprice;
            
BusinessInfo[HOUSE_BIZZ][bFunds] -= intnum;
            
f(string, "Ты купил новый интерьер за {9DDAF2}%d$", intprice);
            
SCM(playerid, COLOR_WHITE, string);
            
DestroyDynamicPickup(HousePickupInt[houseid]);
            
CreateHouseExitPickup(houseid);
            for(new 
i=0; i<GetMaxPlayers(); i++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
IsInPlayerHouse[i][houseid])
                    {
                        
SetPlayerHouseInterior(i, houseid);
                    }
                }
            }
        }
        else
        {
            
ShowMenuForPlayer(HouseMenu, playerid);
        }
        return 
1;
    } 
Сам диалог после которого рестартит.
Хостинг из дешевых, для теста (Eve-host). Может дело в нагрузке которую создает мой скрипт?
С чем это связано?
Reply


Messages In This Thread
Lost connection to the server. - by Aizov - 11.01.2016, 12:41
Re: Lost connection to the server. - by Diman777 - 11.01.2016, 14:25
Re: Lost connection to the server. - by OstGot - 11.01.2016, 14:49
Re: Lost connection to the server. - by White_116 - 11.01.2016, 16:33
Re: Lost connection to the server. - by Aizov - 11.01.2016, 17:40
Re: Lost connection to the server. - by Stepashka - 11.01.2016, 17:45
Re: Lost connection to the server. - by Aizov - 11.01.2016, 17:59
Re: Lost connection to the server. - by Aizov - 11.01.2016, 18:04
Re: Lost connection to the server. - by Aizov - 11.01.2016, 18:27
Re: Lost connection to the server. - by S4D - 11.01.2016, 18:39
Re: Lost connection to the server. - by Aizov - 11.01.2016, 18:49
Re: Lost connection to the server. - by Stepashka - 12.01.2016, 06:08

Forum Jump:


Users browsing this thread: 1 Guest(s)