Если Вы нашли ответ на вопрос, пожалуйста, пометьте необходимый ответ лучшим (галочка сбоку от сообщения) и поблагодарите автора этого ответа поднятием репутации (плюс в нижней правой части сообщения). Спасибо.
Подробнее:
FAQ по форуму
Как пометить ответ лучшим

Рекомендованные сообщения



15 posts in this topic

Помогите решить данную проблему:
 

Спойлер

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team

[17:16:39] 
[17:16:39] Server Plugins
[17:16:39] --------------
[17:16:39]  Loading plugin: crashdetect.so
[17:16:39]   CrashDetect v4.15.1 is OK.
[17:16:39]   Loaded.
[17:16:39]  Loading plugin: streamer.so
[17:16:39] 

*** Streamer Plugin v2.9.1 by Incognito loaded ***

[17:16:39]   Loaded.
[17:16:39]  Loading plugin: mysql_static.so
[17:16:39]  >> plugin.mysql: R39-5 successfully loaded.
[17:16:39]   Loaded.
[17:16:39]  Loading plugin: pawncmd.so
[17:16:39] Pawn.CMD plugin v3.1.2 by urShadow loaded
[17:16:39]   Loaded.
[17:16:39]  Loading plugin: sscanf.so
[17:16:39] 

[17:16:39]  ===============================

[17:16:39]       sscanf plugin loaded.     

[17:16:39]          Version:  2.8.1        

[17:16:39]    (c) 2012 Alex "Y_Less" Cole  

[17:16:39]  ===============================

[17:16:39]   Loaded.
[17:16:39]  Loading plugin: regex.so
[17:16:39] 

[17:16:39] ______________________________________

[17:16:39]  Regular Expression Plugin v0.2.1 loaded
[17:16:39] ______________________________________

[17:16:39]  By: Fro (c) Copyright <TBG> 2009-2011
[17:16:39] ______________________________________

[17:16:39]   Loaded.
[17:16:39]  Loading plugin: CRP.so
[17:16:39] 

[17:16:39] ______________________________________

[17:16:39]  Convert Rus To Pwn v0.1.1 loaded
[17:16:39] ______________________________________

[17:16:39]  By: Fro (c) Copyright <TBG> 2009-2011
[17:16:39] ______________________________________

[17:16:39]   Loaded.
[17:16:39]  Loaded 7 plugins.

[17:16:39] 
[17:16:39] Filterscripts
[17:16:39] ---------------
[17:16:39]   Loading filterscript 'grob.amx'...
[17:16:40] 
######################################### #
[17:16:40] ### Gravestones filterscript Loaded
[17:16:40] ### Author: Tr1viUm
[17:16:40] #########################################
 
[17:16:40]   Loading filterscript 'antidos.amx'...
[17:16:40] 
-------------------------------------------
[17:16:40] * AntiDoS by Ildar - успешно загружен *
[17:16:40] -------------------------------------------

[17:16:40]   Loaded 2 filterscripts.

[17:16:40]  
[17:16:40]  
[17:16:40]  
[17:16:40]  ======================================= 
[17:16:40]  |                                     | 
[17:16:40]  |        YSI version 3.09.0684        | 
[17:16:40]  |        By Alex "Y_Less" Cole        | 
[17:16:40]  |                                     | 
[17:16:40]  ======================================= 
[17:16:41]  
[17:16:41]   MySQL connection: TRUE (host)

[17:16:41] -> Динамических объектов: 27822
[17:16:41] -> Статических объектов: 0
[17:16:41] -> Видимых объектов (стример): 1000
[17:16:41] _______________________________________________________
[17:16:41]  HCS --> Especially --> Just        		  	  		  
[17:16:41]  Авторы доработки: Виталий Аницаев, Владимир Макаревич 
[17:16:41]  Для проекта TimePlay RP RP 2016-2017 (25.01.2016)   		  
[17:16:41] _______________________________________________________
[17:16:41] Number of vehicle models: 25
[17:16:41] [Загружено орг/раб. автомобилей]: <0>. Потрачено: <0 ms>.
[17:16:41] [Загружено бизнесов]: <0>. Потрачено: <0 ms>.
[17:16:41] [Загружено домов]: <0>. Потрачено: <0 ms>.
[17:16:41] [Загружены склады мафий]: Потрачено: <0 ms>.
[17:16:41] [Загружены склады банд]: Потрачено: <0 ms>.
[17:16:41] [Загружено гангзон]: <100>. Потрачено: <2 ms>.
[17:16:41] [Загружено банкоматов]: <0>. Потрачено: <0 ms>.
[17:16:41] [Загружено остальное]: Потрачено: <0 ms>.
[17:16:41] [Загружено радаров]: <0>. Потрачено: <0 ms>.
[17:16:41] [Загружено итемов]: <0>. Потрачено: <0 мс>
[17:16:41] [Загружено семей]: <0>. Потрачено: <->.
[17:16:41] [Загружено подъездов]: <0>. Потрачено: <0 ms>.
[17:16:41] [Загружено квартир]: <0>. Потрачено: <0 ms>.
[17:17:06] Incoming connection: 89.145.154.128:50397
[17:17:09] [join] Jaliba_Baron has joined the server (0:89.145.154.128)
[17:17:16] [debug] Run time error 4: "Array index out of bounds"
[17:17:16] [debug]  Accessing element at index 5 past array upper bound 4
[17:17:16] [debug] AMX backtrace:
[17:17:16] [debug] #0 00027b7c in public OnPlayerRequestClass (playerid=0, classid=0) at J:\Сервер TimePlay RolePlay\Новый мод\gamemodes\timeplay.pwn:4234
[17:17:25] [debug] Run time error 4: "Array index out of bounds"
[17:17:25] [debug]  Accessing element at index 3 past array upper bound 2
[17:17:25] [debug] AMX backtrace:
[17:17:25] [debug] #0 0002cc2c in public Itter_OnPlayerDisconnect (playerid=0, reason=1) at J:\Сервер TimePlay RolePlay\Новый мод\gamemodes\timeplay.pwn:4577
[17:17:25] [debug] #1 00013f00 in public SSCANF_OnPlayerDisconnect (playerid=0, reason=1) at J:\Сервер TimePlay RolePlay\Новый мод\pawno\include\YSI\y_iterate.inc:909
[17:17:25] [debug] #2 0000bdd4 in public OnPlayerDisconnect (playerid=0, reason=1) at J:\Сервер TimePlay RolePlay\Новый мод\pawno\include\sscanf2.inc:260
[17:17:25] [part] Jaliba_Baron has left the server (0:1)

 

Спойлер

[14:12:36] [ERROR] CMySQLQuery::Execute[LoadFamily] - (error #1146) Table 'gs50.family_system' doesn't exist
[14:12:36] [ERROR] CMySQLQuery::Execute[LoadPodezd] - (error #1146) Table 'gs50.podezd' doesn't exist
[14:12:36] [ERROR] CMySQLQuery::Execute[LoadRooms] - (error #1146) Table 'gs50.rooms' doesn't exist

 

 

Share this post


Link to post
Share on other sites

@Daniil Roslyakov mysql_log можете уже не скидывать, в нем ошибок нет. 

Скидывайте полностью OnPlayerRequestClass и пометьте там строку 4234. 

После скиньте строку 4577 и полностью паблик OnPlayerDisconnect. 

Share this post


Link to post
Share on other sites

@stibs 

Спойлер

public OnPlayerRequestClass(playerid, classid)
{
    if(PlayerLogged[playerid] == true)
	{
	    SetSpawnInfoEx(playerid, PI[playerid][pModel], 0, 0, 0, 1.0);
		return SpawnPlayer(playerid);
	}
	
	ac_1{playerid} = true;
	PlayerSpawned[playerid] = false;
	SetPVarInt(playerid, "AntiBreik", 500);
	for(new i; i < 6; i++) TextDrawShowForPlayer(playerid, Logotype[i]); //строка 4234
	SetTimerEx("player_join", 300, false, "i", playerid);
	return 1;
}

 

4577: 		PlayerTextDrawDestroy(playerid, GreenZoneText[playerid][i]);
Спойлер

public OnPlayerDisconnect(playerid, reason)
{
    if(PI[playerid][pFamily])family_info [ PI[playerid][pFamily]] [ f_online ]--;
    slotUsed{playerid} = false;
    PI[playerid][pOnline] = 0;
    for(new i=0;i<MAX_LIST+1;i++){PlayerUseList[playerid][i]=0;}
    KillTimer(player_timer[playerid]);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
	new Query[128];
	format(Query, sizeof(Query), "UPDATE "T_ADMIN" SET timemin='%d' WHERE name='%s' LIMIT 1", AdminInfo[playerid][admTimeMin], GetName(playerid));
	mysql_tquery(dbHandle, Query, "", "");
	//удал кара
	if(PI[playerid][PlayerCarID][0] != INVALID_VEHICLE_ID)
	{
        if(Settings[playerid][5] == 1)
		{
			DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][PlayerCarID][0]]);
        	VehicleLabel[PI[playerid][PlayerCarID][0]] = Text3D:INVALID_3DTEXT_ID;
		}
		PI[playerid][cFuel][0] = Fuel[PI[playerid][PlayerCarID][0]];
//		PI[playerid][cMileage][0] = VehInfo[PI[playerid][PlayerCarID][0]][vMileage];
		DestroyVehicle(PI[playerid][PlayerCarID][0]);
		PI[playerid][PlayerCarID][0] = INVALID_VEHICLE_ID;
	}
	if(PI[playerid][PlayerCarID][1] != INVALID_VEHICLE_ID)
	{
	    if(Settings[playerid][5] == 1)
	    {
	        DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][PlayerCarID][1]]);
	        VehicleLabel[PI[playerid][PlayerCarID][1]] = Text3D:INVALID_3DTEXT_ID;
		}
		PI[playerid][cFuel][1] = Fuel[PI[playerid][PlayerCarID][1]];
//		PI[playerid][cMileage][1] = VehInfo[PI[playerid][PlayerCarID][1]][vMileage];
		DestroyVehicle(PI[playerid][PlayerCarID][1]);
		PI[playerid][PlayerCarID][1] = INVALID_VEHICLE_ID;
	}
	if(InShop[playerid] > 0 || GetPVarInt(playerid, "InShop") > 0)
	{
	    if(PI[playerid][SalonCarID] != INVALID_VEHICLE_ID) DestroyVehicle(PI[playerid][SalonCarID]);
		DeletePVar(playerid, "InShop");
		InShop[playerid] = 0;
		PI[playerid][SalonCarID] = INVALID_VEHICLE_ID;
		for(new i; i < 2; i++) PlayerTextDrawHide(playerid, JRP_TD[playerid][i]);
		for(new i; i < 11; i++) TextDrawHideForPlayer(playerid, JRPTD[i]);
		CancelSelectTextDraw(playerid);
	}
	if(pCuff[playerid][pCuffee] != INVALID_PLAYER_ID && reason == 1)
	{
	    new id = pCuff[playerid][pCuffee];
	    if(id == playerid)
		{
		    new cuffer = pCuff[playerid][pCuffer];
		    new string[128];
			format(string, sizeof(string), "%s вышел при аресте и был посажен в тюрьму на 30 минут", GetName(playerid));
			SendClientMessageToAll(COLOR_RED, string);
			PI[playerid][pJail] = 1;
			PI[playerid][pJailTime] = 1800;
			PI[playerid][pWanted] = 0;
			pCuff[cuffer][pCuffer] = INVALID_PLAYER_ID;
			pCuff[cuffer][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffer] = INVALID_PLAYER_ID;
		}
		else if(!IsPlayerConnected(id))
		{
		    SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE);
			RemovePlayerAttachedObject(id, 0);
			pCuff[id][pCuffer] = INVALID_PLAYER_ID;
			pCuff[id][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffer] = INVALID_PLAYER_ID;
			SendClientMessage(playerid, COLOR_LIME, "Офицер, надевший на Вас наручники, вышел из игры. Наручники сняты.");
		}
	}
 	if(GetPVarInt(playerid, "arendkey") != -1)
	{
		new v = GetPVarInt(playerid, "arendkey");
		if(ArendInfo[v][aPlayerID] == playerid)
		{
			ArendInfo[v][aPlayerID] = INVALID_PLAYER_ID;
            SetVehicleToRespawn(ArendInfo[v][aID]);
			CarDoorsEx(ArendInfo[v][aID], 0);
		}
    }
	if(GetPVarInt(playerid,"objectcop"))
	{
		DestroyObject(GetPVarInt(playerid,"objectcop"));
		DestroyDynamicArea(Ships[playerid]);
	}
	PI[playerid][pBed] = 0;
	PlayerDied[playerid] = false;
	drawcapt[playerid] = false;
	SetPlayerSkills(playerid);
 	if(PlayerUseMask[playerid])
	{
        PlayerUseMask[playerid] = false;
		KillTimer(MaskTimer[playerid]);
	}
	if(UseGPS[playerid])
	{
    	DisablePlayerRaceCheckpoint(playerid);
    	UseGPS[playerid] = false;
    	for(new i; i < 3; i++) TextDrawHideForPlayer(playerid, GPSEnabled[i]);
	}
	PlayerTextDrawHide(playerid,VehNazv[playerid]);
	PlayerTextDrawHide(playerid,VehCost[playerid]);
	if(GetPVarInt(playerid, "PriceBus") > 0)
	{
		PI[playerid][pPayCheck] += GetPVarInt(playerid, "BusMoney");
		if(IsValidDynamic3DTextLabel(BusText3D[playerid])) DestroyDynamic3DTextLabel(BusText3D[playerid]);
		SetVehicleToRespawn(PI[playerid][BusCarID]);
	}
	if(GetPVarInt(playerid, "PriceTaxi") > 0)
	{
		PI[playerid][pPayCheck] += GetPVarInt(playerid, "TaxiMoney");
		if(IsValidDynamic3DTextLabel(TaxiText3D[playerid])) DestroyDynamic3DTextLabel(TaxiText3D[playerid]);
		SetVehicleToRespawn(PI[playerid][TaxiCarID]);
	}
	if(PI[playerid][MechanicCarID] != INVALID_VEHICLE_ID) SetVehicleToRespawn(PI[playerid][MechanicCarID]);
	if(PI[playerid][TruckerCarID] != INVALID_VEHICLE_ID) SetVehicleToRespawn(PI[playerid][TruckerCarID]);
	if(UseWork[playerid] == 2)
	{
	    DeletePVar(playerid, "OldLessSkin");
		UseWork[playerid] = 0;
		DeletePVar(playerid, "LessProgress");
		DeletePVar(playerid, "Derevo");
		DeletePVar(playerid, "LessStatus");
		if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
		if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
	}
	
	foreach(new i: Player)
	{
        if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && PI[i][Spectating][0] == playerid)
        {
            GameTextForPlayer(i, "PLAYER DISCONNECTED", 3000, 3);
            callcmd::specoff(i, "");
	    }
	}
	PlayerMenuExit(playerid);
	
    for(new i = 0; i < 38; i++) TextDrawHideForPlayer(playerid, SELECT_SKIN[i]);
	for(new i = 0; i < 6; i++) TextDrawHideForPlayer(playerid, Button[i]);
    PlayerTextDrawDestroy(playerid, SelSkin[playerid]);
    PlayerTextDrawDestroy(playerid, HungerProgress[playerid]);
	HungerProgress[playerid] = PlayerText:INVALID_TEXT_DRAW;

    for(new i = 0; i < 10; i++)
	{
		PlayerTextDrawDestroy(playerid, SecurityCode[playerid][i]);
		SecurityCode[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 6; i++)
	{
		PlayerTextDrawDestroy(playerid, StatusWork[playerid][i]);
		StatusWork[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 2; i++)
	{
		PlayerTextDrawDestroy(playerid, JRP_TD[playerid][i]);
		JRP_TD[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 4; i++)
	{
		PlayerTextDrawDestroy(playerid, GreenZoneText[playerid][i]);
		GreenZoneText[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 14; i++)
	{
		PlayerTextDrawDestroy(playerid, SpeedPlayerText[playerid][i]);
		SpeedPlayerText[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 7; i++)
	{
	    PlayerTextDrawDestroy(playerid, CaptureTD[playerid][i]);
		CaptureTD[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	CancelSelectTextDraw(playerid);
	
	new gun_string[56], ammo_string[56], string[256];
	format(gun_string, 56, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
	PI[playerid][pGun][0], PI[playerid][pGun][1], PI[playerid][pGun][2], PI[playerid][pGun][3],
	PI[playerid][pGun][4], PI[playerid][pGun][5], PI[playerid][pGun][6], PI[playerid][pGun][7],
	PI[playerid][pGun][8], PI[playerid][pGun][9], PI[playerid][pGun][10], PI[playerid][pGun][11],
	PI[playerid][pGun][12]);
	
	format(ammo_string, 56, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
	PI[playerid][pAmmo][0], PI[playerid][pAmmo][1], PI[playerid][pAmmo][2], PI[playerid][pAmmo][3],
	PI[playerid][pAmmo][4], PI[playerid][pAmmo][5], PI[playerid][pAmmo][6], PI[playerid][pAmmo][7],
	PI[playerid][pAmmo][8], PI[playerid][pAmmo][9], PI[playerid][pAmmo][10], PI[playerid][pAmmo][11],
	PI[playerid][pAmmo][12]);
	
	format(string, sizeof(string), "UPDATE "T_ACCOUNTS" SET `guns` = '%s',`ammos` = '%s' WHERE `id` = '%i'", gun_string, ammo_string, PI[playerid][pID]);
	mysql_tquery(dbHandle, string, "", "");
	
	SaveAccount(playerid);
	SetPlayerDataToDefault(playerid);
	rodEnable{playerid} = 0;
	rodRaised{playerid} = 0;
	//-------[ Защита от Fake Disconnect ]---------
    if(!isPlayerConnected[playerid]) return true;
    isPlayerConnected[playerid] = false;
    if(reason != 2) Kick(playerid);
    //---------------------------------------------
	return 1;
}

 

 

Share this post


Link to post
Share on other sites

Свой паблик OnPlayerDisconnect: 
 

Спойлер

ublic OnPlayerDisconnect(playerid, reason)
{
    if(PI[playerid][pFamily])family_info [ PI[playerid][pFamily]] [ f_online ]--;
    slotUsed{playerid} = false;
    PI[playerid][pOnline] = 0;
    for(new i=0;i<MAX_LIST+1;i++){PlayerUseList[playerid][i]=0;}
    KillTimer(player_timer[playerid]);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
	if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
	new Query[128];
	format(Query, sizeof(Query), "UPDATE "T_ADMIN" SET timemin='%d' WHERE name='%s' LIMIT 1", AdminInfo[playerid][admTimeMin], GetName(playerid));
	mysql_tquery(dbHandle, Query, "", "");
	//удал кара
	if(PI[playerid][PlayerCarID][0] != INVALID_VEHICLE_ID)
	{
        if(Settings[playerid][5] == 1)
		{
			DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][PlayerCarID][0]]);
        	VehicleLabel[PI[playerid][PlayerCarID][0]] = Text3D:INVALID_3DTEXT_ID;
		}
		PI[playerid][cFuel][0] = Fuel[PI[playerid][PlayerCarID][0]];
//		PI[playerid][cMileage][0] = VehInfo[PI[playerid][PlayerCarID][0]][vMileage];
		DestroyVehicle(PI[playerid][PlayerCarID][0]);
		PI[playerid][PlayerCarID][0] = INVALID_VEHICLE_ID;
	}
	if(PI[playerid][PlayerCarID][1] != INVALID_VEHICLE_ID)
	{
	    if(Settings[playerid][5] == 1)
	    {
	        DestroyDynamic3DTextLabel(VehicleLabel[PI[playerid][PlayerCarID][1]]);
	        VehicleLabel[PI[playerid][PlayerCarID][1]] = Text3D:INVALID_3DTEXT_ID;
		}
		PI[playerid][cFuel][1] = Fuel[PI[playerid][PlayerCarID][1]];
//		PI[playerid][cMileage][1] = VehInfo[PI[playerid][PlayerCarID][1]][vMileage];
		DestroyVehicle(PI[playerid][PlayerCarID][1]);
		PI[playerid][PlayerCarID][1] = INVALID_VEHICLE_ID;
	}
	if(InShop[playerid] > 0 || GetPVarInt(playerid, "InShop") > 0)
	{
	    if(PI[playerid][SalonCarID] != INVALID_VEHICLE_ID) DestroyVehicle(PI[playerid][SalonCarID]);
		DeletePVar(playerid, "InShop");
		InShop[playerid] = 0;
		PI[playerid][SalonCarID] = INVALID_VEHICLE_ID;
		for(new i; i < 2; i++) PlayerTextDrawHide(playerid, JRP_TD[playerid][i]);
		for(new i; i < 11; i++) TextDrawHideForPlayer(playerid, JRPTD[i]);
		CancelSelectTextDraw(playerid);
	}
	if(pCuff[playerid][pCuffee] != INVALID_PLAYER_ID && reason == 1)
	{
	    new id = pCuff[playerid][pCuffee];
	    if(id == playerid)
		{
		    new cuffer = pCuff[playerid][pCuffer];
		    new string[128];
			format(string, sizeof(string), "%s вышел при аресте и был посажен в тюрьму на 30 минут", GetName(playerid));
			SendClientMessageToAll(COLOR_RED, string);
			PI[playerid][pJail] = 1;
			PI[playerid][pJailTime] = 1800;
			PI[playerid][pWanted] = 0;
			pCuff[cuffer][pCuffer] = INVALID_PLAYER_ID;
			pCuff[cuffer][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffer] = INVALID_PLAYER_ID;
		}
		else if(!IsPlayerConnected(id))
		{
		    SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE);
			RemovePlayerAttachedObject(id, 0);
			pCuff[id][pCuffer] = INVALID_PLAYER_ID;
			pCuff[id][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffee] = INVALID_PLAYER_ID;
			pCuff[playerid][pCuffer] = INVALID_PLAYER_ID;
			SendClientMessage(playerid, COLOR_LIME, "Офицер, надевший на Вас наручники, вышел из игры. Наручники сняты.");
		}
	}
 	if(GetPVarInt(playerid, "arendkey") != -1)
	{
		new v = GetPVarInt(playerid, "arendkey");
		if(ArendInfo[v][aPlayerID] == playerid)
		{
			ArendInfo[v][aPlayerID] = INVALID_PLAYER_ID;
            SetVehicleToRespawn(ArendInfo[v][aID]);
			CarDoorsEx(ArendInfo[v][aID], 0);
		}
    }
	if(GetPVarInt(playerid,"objectcop"))
	{
		DestroyObject(GetPVarInt(playerid,"objectcop"));
		DestroyDynamicArea(Ships[playerid]);
	}
	PI[playerid][pBed] = 0;
	PlayerDied[playerid] = false;
	drawcapt[playerid] = false;
	SetPlayerSkills(playerid);
 	if(PlayerUseMask[playerid])
	{
        PlayerUseMask[playerid] = false;
		KillTimer(MaskTimer[playerid]);
	}
	if(UseGPS[playerid])
	{
    	DisablePlayerRaceCheckpoint(playerid);
    	UseGPS[playerid] = false;
    	for(new i; i < 3; i++) TextDrawHideForPlayer(playerid, GPSEnabled[i]);
	}
	PlayerTextDrawHide(playerid,VehNazv[playerid]);
	PlayerTextDrawHide(playerid,VehCost[playerid]);
	if(GetPVarInt(playerid, "PriceBus") > 0)
	{
		PI[playerid][pPayCheck] += GetPVarInt(playerid, "BusMoney");
		if(IsValidDynamic3DTextLabel(BusText3D[playerid])) DestroyDynamic3DTextLabel(BusText3D[playerid]);
		SetVehicleToRespawn(PI[playerid][BusCarID]);
	}
	if(GetPVarInt(playerid, "PriceTaxi") > 0)
	{
		PI[playerid][pPayCheck] += GetPVarInt(playerid, "TaxiMoney");
		if(IsValidDynamic3DTextLabel(TaxiText3D[playerid])) DestroyDynamic3DTextLabel(TaxiText3D[playerid]);
		SetVehicleToRespawn(PI[playerid][TaxiCarID]);
	}
	if(PI[playerid][MechanicCarID] != INVALID_VEHICLE_ID) SetVehicleToRespawn(PI[playerid][MechanicCarID]);
	if(PI[playerid][TruckerCarID] != INVALID_VEHICLE_ID) SetVehicleToRespawn(PI[playerid][TruckerCarID]);
	if(UseWork[playerid] == 2)
	{
	    DeletePVar(playerid, "OldLessSkin");
		UseWork[playerid] = 0;
		DeletePVar(playerid, "LessProgress");
		DeletePVar(playerid, "Derevo");
		DeletePVar(playerid, "LessStatus");
		if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
		if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
	}
	
	foreach(new i: Player)
	{
        if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && PI[i][Spectating][0] == playerid)
        {
            GameTextForPlayer(i, "PLAYER DISCONNECTED", 3000, 3);
            callcmd::specoff(i, "");
	    }
	}
	PlayerMenuExit(playerid);
	
    for(new i = 0; i < 38; i++) TextDrawHideForPlayer(playerid, SELECT_SKIN[i]);
	for(new i = 0; i < 6; i++) TextDrawHideForPlayer(playerid, Button[i]);
    PlayerTextDrawDestroy(playerid, SelSkin[playerid]);
    PlayerTextDrawDestroy(playerid, HungerProgress[playerid]);
	HungerProgress[playerid] = PlayerText:INVALID_TEXT_DRAW;

    for(new i = 0; i < 10; i++)
	{
		PlayerTextDrawDestroy(playerid, SecurityCode[playerid][i]);
		SecurityCode[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 6; i++)
	{
		PlayerTextDrawDestroy(playerid, StatusWork[playerid][i]);
		StatusWork[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 2; i++)
	{
		PlayerTextDrawDestroy(playerid, JRP_TD[playerid][i]);
		JRP_TD[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 2; i++)
	{
		PlayerTextDrawDestroy(playerid, GreenZoneText[playerid][i]);
		GreenZoneText[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 14; i++)
	{
		PlayerTextDrawDestroy(playerid, SpeedPlayerText[playerid][i]);
		SpeedPlayerText[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	for(new i = 0; i < 7; i++)
	{
	    PlayerTextDrawDestroy(playerid, CaptureTD[playerid][i]);
		CaptureTD[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}
	CancelSelectTextDraw(playerid);
	
	new gun_string[56], ammo_string[56], string[256];
	format(gun_string, 56, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
	PI[playerid][pGun][0], PI[playerid][pGun][1], PI[playerid][pGun][2], PI[playerid][pGun][3],
	PI[playerid][pGun][4], PI[playerid][pGun][5], PI[playerid][pGun][6], PI[playerid][pGun][7],
	PI[playerid][pGun][8], PI[playerid][pGun][9], PI[playerid][pGun][10], PI[playerid][pGun][11],
	PI[playerid][pGun][12]);
	
	format(ammo_string, 56, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",
	PI[playerid][pAmmo][0], PI[playerid][pAmmo][1], PI[playerid][pAmmo][2], PI[playerid][pAmmo][3],
	PI[playerid][pAmmo][4], PI[playerid][pAmmo][5], PI[playerid][pAmmo][6], PI[playerid][pAmmo][7],
	PI[playerid][pAmmo][8], PI[playerid][pAmmo][9], PI[playerid][pAmmo][10], PI[playerid][pAmmo][11],
	PI[playerid][pAmmo][12]);
	
	format(string, sizeof(string), "UPDATE "T_ACCOUNTS" SET `guns` = '%s',`ammos` = '%s' WHERE `id` = '%i'", gun_string, ammo_string, PI[playerid][pID]);
	mysql_tquery(dbHandle, string, "", "");
	
	SaveAccount(playerid);
	SetPlayerDataToDefault(playerid);
	rodEnable{playerid} = 0;
	rodRaised{playerid} = 0;
	//-------[ Защита от Fake Disconnect ]---------
    if(!isPlayerConnected[playerid]) return true;
    isPlayerConnected[playerid] = false;
    if(reason != 2) Kick(playerid);
    //---------------------------------------------
	return 1;
}

 

Строку в OnPlayerRequestClass заменить на эту: 

for(new i; i < 4; i++) TextDrawShowForPlayer(playerid, Logotype[i]); //строка 4234

 

Share this post


Link to post
Share on other sites

@Daniil Roslyakov Эту строку из OnPlayerRequestClass замените: 
 

for(new i; i < 5; i++) TextDrawShowForPlayer(playerid, Logotype[i]); //строка 4234

И в OnPlayerDisconnect замените этот участок кода: 
 

	for(new i = 0; i < 3; i++)
	{
		PlayerTextDrawDestroy(playerid, GreenZoneText[playerid][i]);
		GreenZoneText[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
	}

 

Share this post


Link to post
Share on other sites

@Daniil Roslyakov значит верните, как было, т.е.: 

for(new i; i < 5; i++) TextDrawShowForPlayer(playerid, Logotype[i]); //строка 4234

А текстдрав гринзоны по-видимому и до этого не появлялся. А если появлялся, значит, ищите ошибки в своих последних модификациях кода. 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • nocare.
      By nocare.
      Фризит(замораживает) при телепортах, переходах через пикапы, и так далее. Помогите, не могу понять в чем проблемма