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



10 posts in this topic

Проблема в том, что после прохождения регистрации и затем выбор скина сервер просто умирает. Пожалуйста помогите!!! не знаем что делать

Вот все логи:
 

Спойлер

 


[21:15:04] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[21:15:04] [ERROR] cache_get_row_int - invalid datatype
[21:15:04] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[21:15:04] [ERROR] cache_get_row_int - invalid datatype
[21:17:32] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[21:17:32] [ERROR] cache_get_row_int - invalid datatype
[21:17:32] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[21:17:32] [ERROR] cache_get_row_int - invalid datatype
[21:22:38] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[21:22:38] [ERROR] cache_get_row_int - invalid datatype
[21:22:38] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[21:22:38] [ERROR] cache_get_row_int - invalid datatype
[21:34:30] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[21:34:30] [ERROR] cache_get_row_int - invalid datatype
[21:34:30] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[21:34:30] [ERROR] cache_get_row_int - invalid datatype
[21:44:48] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[21:44:48] [ERROR] cache_get_row_int - invalid datatype
[21:44:48] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[21:44:48] [ERROR] cache_get_row_int - invalid datatype
[21:55:18] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[21:55:18] [ERROR] cache_get_row_int - invalid datatype
[21:55:18] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[21:55:18] [ERROR] cache_get_row_int - invalid datatype
[22:19:21] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[22:19:22] [ERROR] cache_get_row_int - invalid datatype
[22:19:22] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[22:19:22] [ERROR] cache_get_row_int - invalid datatype
[22:37:36] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('123')
[22:37:36] [ERROR] cache_get_row_int - invalid datatype
[22:37:36] [WARNING] CMySQLResult::GetRowData - invalid row ('0') or field index ('122')
[22:37:36] [ERROR] cache_get_row_int - invalid datatype

 

Спойлер

 


[11:14:08] [debug] Run time error 4: "Array index out of bounds"
[11:14:08] [debug]  Accessing element at index 65535 past array upper bound 1999
[11:14:08] [debug] AMX backtrace:
[11:14:08] [debug] #0 0001d558 in public Itter_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Ultimate\Desktop\Shelters RolePlay\gamemodes\new.pwn:3596
[11:14:08] [debug] #1 0000d928 in public SSCANF_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Ultimate\Desktop\Shelters RolePlay\pawno\include\YSI\y_iterate.inc:909
[11:14:08] [debug] #2 00005180 in public OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\Ultimate\Desktop\Shelters RolePlay\pawno\include\sscanf2.inc:260
[11:14:08] [part] Developer has left the server (0:1)


 

Спойлер

 


	PI[playerid][pMusic] = cache_get_row_int(0, 97, dbHandle); // music
	PI[playerid][pBag] = cache_get_row_int(0, 123, dbHandle); // music
	cache_get_row(0, 98, PI[playerid][pImproves], dbHandle, 32); // improves
	PI[playerid][pSettings] = cache_get_row_int(0, 99, dbHandle); // settings
	PhoneNumbers[playerid][0] = cache_get_row_int(0, 101, dbHandle); // phnumber1
	PhoneNumbers[playerid][1] = cache_get_row_int(0, 102, dbHandle); // phnumber2
	PhoneNumbers[playerid][2] = cache_get_row_int(0, 103, dbHandle); // phnumber3
	PhoneNumbers[playerid][3] = cache_get_row_int(0, 104, dbHandle); // phnumber4
	PhoneNumbers[playerid][4] = cache_get_row_int(0, 105, dbHandle); // phnumber5
	PhoneNumbers[playerid][5] = cache_get_row_int(0, 106, dbHandle); // phnumber6
	PhoneNumbers[playerid][6] = cache_get_row_int(0, 107, dbHandle); // phnumber7
	PhoneNumbers[playerid][7] = cache_get_row_int(0, 108, dbHandle); // phnumber8
	PI[playerid][pMailConfirmed] = cache_get_row_int(0, 109, dbHandle); // mailconf
	PI[playerid][pFishki] = cache_get_row_int(0, 110, dbHandle); // fishki
	PI[playerid][pCarA] = cache_get_row_int(0, 112, dbHandle); // cash
	PI[playerid][pCarB] = cache_get_row_int(0, 113, dbHandle); // cash
	PI[playerid][pCarC] = cache_get_row_int(0, 114, dbHandle); // cash
	PI[playerid][pCarD] = cache_get_row_int(0, 115, dbHandle); // cash
    cache_get_field_content(0,"pInt",pint), PI[playerid][pInt] = strval(pint);
    cache_get_field_content(0,"pWorld",pworld), PI[playerid][pWorld] = strval(pworld);
    cache_get_field_content(0,"PosX",posx), PI[playerid][PosX] = floatstr(posx);
    cache_get_field_content(0,"PosY",posy), PI[playerid][PosY] = floatstr(posy);
    cache_get_field_content(0,"PosZ",posz), PI[playerid][PosZ] = floatstr(posz);
    PI[playerid][pTruckLevel] = cache_get_row_int(0, 121, dbHandle); // truckskill
    PI[playerid][pAlog] = cache_get_row_int(0, 122, dbHandle); // cash

 

Edited by odosenok
Причина: взял код в теги "Спойлер" и "Код".

Заметка от Jawn , создано

Пожалуйста, внимательно ознакомьтесь с тем, как правильно выкладывать большой код.

Share this post


Link to post
Share on other sites

@Ponyasha228 Это что-то магическое.

@Ponyasha228 Он у тебя что-то на SSCANF

Share this post


Link to post
Share on other sites

Я запустил backup от 2018 там все четко когда на локалке тестил через Denwer вносил кучу обновлений и прочего. Закинул на хост чел заходит и сервер умирает тоже самое от своего лица проводил регистрацию 

 

[19:23:44] [debug] Run time error 4: "Array index out of bounds"
[19:23:44] [debug]  Accessing element at negative index -400
[19:23:44] [debug] AMX backtrace:
[19:23:44] [debug] #0 00414088 in BuyCar (playerid=1) at C:\Users\Ultimate\Desktop\Shelters RolePlay\gamemodes\new.pwn:40412
[19:23:44] [debug] #1 00078a7c in public OnDialogResponse (playerid=1, dialogid=9278, response=1, listitem=-1, inputtext[]=@0074e244 "") at C:\Users\Ultimate\Desktop\Shelters RolePlay\gamemodes\new.pwn:9525

Вот и новая проблема появилась 

Заметка от Jawn , создано

Объединил сообщения.

Share this post


Link to post
Share on other sites
Run time error 4: "Array index out of bounds" 
Неплохо.. выход за границы массива 
Ищи где у тебя массив через жопу сделан.

Share this post


Link to post
Share on other sites

[23:38:31] [join] Alvaro_Deasidi has joined the server (0:127.0.0.1)
[23:38:52] Игрок Alvaro_Deasidi только что использовал диалог номер 1
[23:38:54] Игрок Alvaro_Deasidi только что использовал диалог номер 4
[23:38:54] Игрок Alvaro_Deasidi только что использовал диалог номер 161
[23:38:54] [debug] Server crashed while executing new.amx
[23:38:54] [debug] AMX backtrace:
[23:38:54] [debug] #0 native ShowMenuForPlayer () from samp-server-cr.exe
[23:38:54] [debug] #1 00022100 in public OnPlayerSpawn (playerid=0) at C:\Users\Ultimate\Desktop\Shelters RolePlay\gamemodes\new.pwn:3881
[23:38:56] [debug] Native backtrace:
[23:38:56] [debug] #0 00486be0 in ?? () from samp-server-cr.exe
[23:38:56] [debug] #1 69d162ca in ?? () from plugins\crashdetect.DLL
[23:38:56] [debug] #2 69d18b28 in ?? () from plugins\crashdetect.DLL
[23:38:56] [debug] #3 69d109c7 in ?? () from plugins\crashdetect.DLL
[23:38:56] [debug] #4 69d1631a in ?? () from plugins\crashdetect.DLL
[23:38:56] [debug] #5 69d64509 in ?? () from plugins\streamer.DLL
[23:38:56] [debug] #6 0046ccf0 in ?? () from samp-server-cr.exe
[23:38:56] [debug] #7 7774e013 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[23:38:56] [debug] #8 762a14bd in ?? () from C:\Windows\syswow64\kernel32.dll
[23:38:56] [debug] #9 00458e7c in ?? () from samp-server-cr.exe
[23:38:56] [debug] #10 68106ac3 in ?? () from samp-server-cr.exe
[23:38:56] [debug] #11 004b1868 in ?? () from samp-server-cr.exe

Edited by Ponyasha228

Share this post


Link to post
Share on other sites

@Ponyasha228 кидайте весь OnPlayerSpawn, если он большой (>150 строк), то скиньте только строчки 3861-3901. И в коде, который скинете, выделите строчку  3881. 

Share this post


Link to post
Share on other sites

public OnPlayerSpawn(playerid)
{
	if(PlayerLogged[playerid] == false)
	{
	    SendClientMessage(playerid, COLOR_RED, PlayerNeedToLoggedForToPlay);
		return SKick(playerid, 2);
	}
	PlayerSpawned[playerid] = false;
	if(PI[playerid][pCash])
	{
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid, PI[playerid][pCash]);
	}
	if(UseWork[playerid])
	{
		UseWork[playerid] = 0;
		for(new i; i < 6; i++) PlayerTextDrawHide(playerid, StatusWork[playerid][i]);
	}
    TogglePlayerControllable(playerid, true);
    SetHealth(playerid, 100);
    SetHunger(playerid, PI[playerid][pHunger]);
 	DisablePlayerCheckpoint(playerid);
	SetPlayerVirtualWorld(playerid, 0);
	SetPlayerScore(playerid, PI[playerid][pLevel]);
	if(PI[playerid][pFightStyle]) SetPlayerFightingStyle(playerid, PI[playerid][pFightStyle]);
	else SetPlayerFightingStyle(playerid, 0);
	if(PI[playerid][pWanted]) SetPlayerWantedLevel(playerid, PI[playerid][pWanted]);
	PlayerPlaySound(playerid, 1184, 0.0, 0.0, 0.0);
	SetPVarInt(playerid, "K_Times", 0);
    SetPVarInt(playerid, "AC_Protection", 1);
    Air_Gettime(playerid, 6);
    SetPlayerSkills(playerid);
	if(GetPVarInt(playerid, "Connected"))
	{
		for(new i; i < 13; i++)
		{
			if(!PI[playerid][pGun][i] || !PI[playerid][pAmmo][i]) continue;
			GivePlayerWeaponAC(playerid, PI[playerid][pGun][i], PI[playerid][pAmmo][i]);
		}
		new gun_string[56], ammo_string[56], string[256];
		format(gun_string, 56, "0,0,0,0,0,0,0,0,0,0,0,0,0");
		format(ammo_string, 56, "0,0,0,0,0,0,0,0,0,0,0,0,0");
		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, "", "");
		DeletePVar(playerid, "Connected");
		PreloadAnimLibs(playerid);
	}
	if(PI[playerid][pMember]) SetPlayerSkin(playerid, PI[playerid][pMemberSkin]);
	else SetPlayerSkin(playerid, PI[playerid][pModel]);
	if(PI[playerid][Spectating][0] != INVALID_PLAYER_ID)
	{
	    SetPlayerPos(playerid, GetPVarFloat(playerid, "SpecX"), GetPVarFloat(playerid, "SpecY"), GetPVarFloat(playerid, "SpecZ"));
	    SetPlayerFacingAngle(playerid, GetPVarFloat(playerid, "SpecA"));
		SetPlayerVirtualWorld(playerid, GetPVarInt(playerid, "SpecVw"));
		SetPlayerInterior(playerid, GetPVarInt(playerid, "SpecInt"));
		DeletePVar(playerid, "SpecInt");
		DeletePVar(playerid, "SpecVw");
		DeletePVar(playerid, "SpecX");
		DeletePVar(playerid, "SpecY");
		DeletePVar(playerid, "SpecZ");
		DeletePVar(playerid, "SpecA");
		PI[playerid][Spectating][0] = INVALID_PLAYER_ID;
		PI[playerid][Spectating][1] = INVALID_PLAYER_ID;
		SetPlayerScore(playerid, PI[playerid][pLevel]);
		if(PI[playerid][pWanted]) SetPlayerWantedLevel(playerid, PI[playerid][pWanted]);
		if(PI[playerid][pMember]) SetPlayerSkin(playerid, PI[playerid][pMemberSkin]);
		else if(Oldskin2[playerid] > 0) SetPlayerSkin(playerid, Oldskin2[playerid]);
		else SetPlayerSkin(playerid, PI[playerid][pModel]);
		return 1;
	}
	else if(ClothesRound[playerid] == 1)
	{
		SendClientMessage(playerid, COLOR_WHITE, "Èñïîëüçóéòå êëàâèøè '{ffcc00}Ââåðõ,âíèç{ffffff}'");
		SendClientMessage(playerid, COLOR_WHITE, "×òî áû âûáðàòü ÷òî-ëèáî â ìåíþ èñïîëüçóéòå '{ffcc00}ÏÐÎÁÅË{ffffff}'");
		SetPlayerVirtualWorld(playerid,playerid);
	    SetPlayerInterior(playerid,0);
		SetPlayerPos(playerid,2449.7200, -699.4471, 20.8978);
		SetPlayerFacingAngle(playerid, -90.00);
		SetPlayerCameraPos(playerid, 2451.3274, -699.3048, 21.6101);
		SetPlayerCameraLookAt(playerid, 2450.3315, -699.3008, 21.5102);
		ApplyAnimation(playerid,"DEALER","DEALER_IDLE",4.1,1,1,1,1,1);
		TogglePlayerControllable(playerid, 0);
        ShowMenuForPlayer(skinmenu, playerid);
		SetHealth(playerid, 100.0);
		if(PI[playerid][pSex] == 1) SetPlayerSkin(playerid, JoinRegM[SelectCharPlace[playerid]]), ChosenSkin[playerid] = JoinRegM[0];
		else SetPlayerSkin(playerid, JoinRegF[SelectCharPlace[playerid]]), ChosenSkin[playerid] = JoinRegF[0];
	}
	else if(ClothesRound[playerid] == 2)
	{
		new string[128];
		SendClientMessage(playerid, COLOR_ORANGE, "Âûáåðèòå ñåáå ïîäõîäÿùóþ îäåæäó, ïîñëå âûáîðà íàæìèòå 'ÊÓÏÈÒÜ', äëÿ îòìåíû íàæìèòå 'ÂÛÉÒÈ'");
		SendClientMessage(playerid, COLOR_ORANGE, "×òîáû ïðîñìîòðåòü îäåæäó, èñïîëüçóéòå ñòðåëî÷êè íà ýêðàíå!");
		SetPlayerVirtualWorld(playerid, playerid);
	    SetPlayerInterior(playerid,9);
	    SetPlayerPos(playerid,-1773.6721,1768.0653,2377.4409);
	    SetPlayerFacingAngle(playerid,46.0056);
		SetPlayerCameraPos(playerid,-1775.9105,1768.3665,2377.4409);
		SetPlayerCameraLookAt(playerid,-1775.9105,1768.3665,2377.4409);
		ApplyAnimation(playerid,"DEALER","DEALER_IDLE",4.1,1,1,1,1,1);
		TogglePlayerControllable(playerid, 0);
		for(new i; i < 4; i++) TextDrawShowForPlayer(playerid, Button[i]);
		SelectTextDraw(playerid, 0xFF4040AA);
		if(PI[playerid][pSex] == 1)
		{
			SelectCharPlace[playerid] = 0;
			SetPlayerSkin(playerid, JoinShopM[SelectCharPlace[playerid]][0]);
			format(string, sizeof(string), "~w~~n~~n~~n~~n~~n~~n~COST: ~g~%i Ðóáëåé", JoinShopM[SelectCharPlace[playerid]][1]);
		}
		else
		{
			SelectCharPlace[playerid] = 0;
			SetPlayerSkin(playerid, JoinShopF[SelectCharPlace[playerid]][0]);
			format(string, sizeof(string), "~w~~n~~n~~n~~n~~n~~n~COST: ~g~%i Ðóáëåé", JoinShopF[SelectCharPlace[playerid]][1]);
		}
		GameTextForPlayer(playerid, string, 2000, 3);
	}
	else if(PI[playerid][pJail] == 1)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, 2325.8633,2624.0454,2002.9200);
		SetPlayerFacingAngle(playerid, 0.0160);
		SetCameraBehindPlayer(playerid);
		new string[80];
		format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~JAILED: ~w~%d", PI[playerid][pJailTime]);
		GameTextForPlayer(playerid, string, 3000, 3);
		SendClientMessage(playerid, COLOR_RED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
	}
	else if(PI[playerid][pJail] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, 2325.8633,2624.0454,2002.9200);
		SetPlayerFacingAngle(playerid, 0.0000);
		SetCameraBehindPlayer(playerid);
		new string[80];
		format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~JAILED: ~w~%d", PI[playerid][pJailTime]);
		GameTextForPlayer(playerid, string, 3000, 3);
		SendClientMessage(playerid, COLOR_RED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
	}
	else if(PlayerDied[playerid] == true)
	{
	    InHospital[playerid] = true;
	    SetHealth(playerid, 10+random(40));
	    SetPlayerFacingAngle(playerid, 270);
	    switch(PI[playerid][pCity])
	    {
	        case 1:
			{
			    SetPlayerVirtualWorld(playerid,0);
			    SetPlayerInterior(playerid,0);
			}
	        case 2:
	        {
	            SetPlayerVirtualWorld(playerid,0);
	            SetPlayerInterior(playerid,0);
	        }
	        default:
	        {
	            SetPlayerVirtualWorld(playerid,0);
	            SetPlayerInterior(playerid,0);
	        }
	    }
	    FreezePlayer(playerid, 2000);
	    SetPlayerPos(playerid, 1622.5939,1218.5580,2513.4299);
	    SetPlayerVirtualWorld(playerid, 0);
	    SetPVarInt(playerid, "lechenie", 1);
        HospitalHealth(playerid);
        SendClientMessage(playerid,COLOR_WHITE,"Âàì ïðèäåòñÿ ïðîéòè êóðñ ëå÷åíèÿ èëè âûëå÷èòüñÿ ó ìåäèêà. Âîéäèòå â ïàëàòó è äåëàéòå ïðîöåäóðó.");
	}
    else if(GetPlayerHouse(playerid) && PI[playerid][pSpawnChange] == 1)
	{
		new i = GetPVarInt(playerid, "PlayerHouse");
		FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, HouseInfo[i][hExitx],HouseInfo[i][hExity], HouseInfo[i][hExitz]);
		SetPlayerInterior(playerid, 10);
		SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtual]);
	}
	else if(GetPlayerPorchHouse(playerid) && PI[playerid][pSpawnChange] == 4)
	{
	    new i = GetPlayerPorchHouse(playerid);
	    FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, -2295.0198,362.3117,-86.4541);
		SetPlayerVirtualWorld(playerid, i + 100);
		SetPlayerInterior(playerid, 10);
		SetPlayerFacingAngle(playerid, 180);
		SetCameraBehindPlayer(playerid);
		SetPVarInt(playerid, "EnterPlayerPorch",  floatround(GetPlayerPorchHouse(playerid) / 9, floatround_floor) + 1);
		SetPVarInt(playerid, "EnterPlayerPorchHouse", GetPlayerPorchHouse(playerid));
	}
	else if(PI[playerid][pMember] == TEAM_LVPD && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 1141.0999,1566.3499,1002.5400);
		SetPlayerFacingAngle(playerid, 213.4171);
		SetCameraBehindPlayer(playerid);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_BALLAS && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 1697.8306,1332.1346,19.7922);
		SetPlayerFacingAngle(playerid, 269.0647);
		SetCameraBehindPlayer(playerid);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_MERIA && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, -938.1777,873.6743,2512.9500);
		SetPlayerFacingAngle(playerid, 270.0);
		SetCameraBehindPlayer(playerid);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_SFMAYOR && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 355.0304,184.7031,1008.3793);
		SetPlayerFacingAngle(playerid, 180.8081);
		SetCameraBehindPlayer(playerid);
		SetPlayerInterior(playerid, 3);
		SetPlayerVirtualWorld(playerid, 2);
	}
	else if(PI[playerid][pMember] == TEAM_LVMAYOR && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 355.0304,184.7031,1008.3793);
		SetPlayerFacingAngle(playerid, 180.8081);
		SetCameraBehindPlayer(playerid);
		SetPlayerInterior(playerid, 3);
		SetPlayerVirtualWorld(playerid, 3);
	}
	else if(PI[playerid][pMember] == TEAM_POLICIA && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,345.3393,1718.2889,602.1660);
		SetPlayerFacingAngle(playerid, 277.6736);
	    SetCameraBehindPlayer(playerid);
	    SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_SFPD && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,883.4052,2088.7144,2721.8101);
		SetPlayerFacingAngle(playerid, 323.1700);
	    SetCameraBehindPlayer(playerid);
	    SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_BOLNICA && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 1623.0638,1228.5155,2513.4299);
		SetPlayerFacingAngle(playerid, 269.8967);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		InHospital[playerid] = true;
	}
	else if(PI[playerid][pMember] == TEAM_OPGTEST1 && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 2611.1584,1758.9337,6.8659);
		SetPlayerFacingAngle(playerid, 72.3676);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
	    SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_ARMIYA && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
	    SetPlayerPos(playerid, -328.8514,326.8230,2213.0000);
		SetPlayerFacingAngle(playerid, 260.9382);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
	    SetPlayerInterior(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_OPG1 && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, -2618.1389,2910.7446,2738.6201);
		SetPlayerFacingAngle(playerid, 9.6819);
		SetCameraBehindPlayer(playerid);
		SetPlayerVirtualWorld(playerid, 5);
		FreezePlayer(playerid, 2000);
	}
	else if(PI[playerid][pMember] == TEAM_RIFA && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 2559.3635,-1845.7546,2522.8401);
		SetPlayerFacingAngle(playerid, 180.8666);
		SetPlayerVirtualWorld(playerid, 5);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
	}
	else if(PI[playerid][pMember] == TEAM_SMI && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 1784.3040,2031.3505,-2.3341);
		SetPlayerFacingAngle(playerid, 180.000);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 1);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pMember] == TEAM_LVPD && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 211.8840,186.7526,1003.0313);
		SetPlayerFacingAngle(playerid, 359.1617);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 3);
		SetPlayerVirtualWorld(playerid, 122);
	}
 	else if(PI[playerid][pMember] == TEAM_OPG3 && PI[playerid][pSpawnChange] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerPos(playerid, 2409.5701,-1716.3014,29.6341);
		SetPlayerFacingAngle(playerid, 92.2228);
		SetCameraBehindPlayer(playerid);
		FreezePlayer(playerid, 2000);
		SetPlayerVirtualWorld(playerid, 0);
	}
	else if(PI[playerid][pSpawnChange] == 3)
	{
        FreezePlayer(playerid, 2000);
        SetPos(playerid);
	}
	else if(PI[playerid][pMember] >= 1 && PI[playerid][pSpawnChange] == 0 || PI[playerid][pMember] == 0)
	{
		if(PI[playerid][pLevel] >= 1 && PI[playerid][pLevel] <= 5)
		{
            FreezePlayer(playerid, 2000);
			SetPlayerPos(playerid, 203.3682,792.2740,12.1494);
			SetPlayerFacingAngle(playerid, 129.1856);
			SetCameraBehindPlayer(playerid);
			SetPlayerInterior(playerid, 0);
			SetPlayerVirtualWorld(playerid, 0);
		}
		if(PI[playerid][pLevel] >= 5)
	    {
            FreezePlayer(playerid, 2000);
			SetPlayerPos(playerid, 203.3682,792.2740,12.1494);
			SetPlayerFacingAngle(playerid, 23.4558);
			SetCameraBehindPlayer(playerid);
			SetPlayerInterior(playerid, 0);
			SetPlayerVirtualWorld(playerid, 0);
  }
	}
 else if(PI[playerid][pJail] == 1)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, 1445.6836,1572.6676,1016.7194);
		SetPlayerFacingAngle(playerid, 0.0160);
		SetCameraBehindPlayer(playerid);
		SendClientMessage(playerid, COLOR_RED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
	}
	else if(PI[playerid][pJail] == 2)
	{
        FreezePlayer(playerid, 2000);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid, 1445.6836,1572.6676,1016.7194);
		SetPlayerFacingAngle(playerid, 0.0000);
		SetCameraBehindPlayer(playerid);
		SendClientMessage(playerid, COLOR_RED, "Âû åùå íå îòñèäåëè ñâîé òþðåìíûé ñðîê");
	}
    SetPVarInt(playerid, "AntiBreik", 10);
	PlayerSpawned[playerid] = true;
	return 1;
}

[/spoiler[

Share this post


Link to post
Share on other sites

@Ponyasha228 где вы пометили строчку 3881?

Share this post


Link to post
Share on other sites
23 минуты назад, DEST сказал:

@Ponyasha228 где вы пометили строчку 3881?

        SetHealth(playerid, 100.0);

Share this post


Link to post
Share on other sites

@Ponyasha228 процедуру SetHealth скиньте

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Vadim Grineev
      By Vadim Grineev
      пишу /park в чате выдаёт авто припарковано когда пытаюсь заново загрузить оно припарковано возле автосалона как и после покупки
      Вот код:
      CMD:park(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xCECECEFF, "Вы должны находиться в транспорте"); new vehicleid; if(GetPlayerOwnableCar(playerid) != GetPlayerVehicleID(playerid) && GetPlayerOwnablCar(playerid) != GetPlayerVehicleID(playerid)) return SendClientMessage(playerid, 0xCECECEFF, "Вы должны находиться в личном транспорте"); else { vehicleid = GetPlayerVehicleID(playerid); } new green_zone_id = GetPVarInt(playerid, "player_in_green_zone") - 1; if(green_zone_id != -1) { if(!g_green_zones[green_zone_id][GZ_ALLOW_PARK]) { new fmt_text[144]; format(fmt_text, sizeof fmt_text, "На территории {FFFF00}'%s' {3399FF}парковка личного транспорта запрещена. Выберите другое место для парковки", g_green_zones[green_zone_id][GZ_NAME]); SendClientMessage(playerid, 0x3399FFFF, fmt_text); return 1; } } new query[912]; new index = GetVehicleData(vehicleid, V_ACTION_ID); new Float: x, Float: y, Float: z, Float: angle; GetVehiclePos(vehicleid, x, y, z); GetVehicleZAngle(vehicleid, angle); format(query, sizeof query, "UPDATE ownable_cars SET pos_x=%f,pos_y=%f,pos_z=%f,angle=%f WHERE id=%d LIMIT 1", x, y, z, angle, GetOwnableCarData(index, OC_SQL_ID)); mysql_tquery(mysql, query, "", ""); GetVehiclePos(vehicleid, GetOwnableCarData(index, OC_POS_X), GetOwnableCarData(index, OC_POS_Y), GetOwnableCarData(index, OC_POS_Z)); GetVehicleZAngle(vehicleid, GetOwnableCarData(index, OC_ANGLE)); SaveOwnableCar(vehicleid); return SendClientMessage(playerid, 0x66CC00FF, "Транспорт припаркован"); }  
    • Guik
      By Guik
      Всем привет! Сегодня я столкнулся с проблемой выдачи rcon администратора. Я играю с телефона и не знаю как это делать. Помогите пожалуйста!!!
      Если что мод "SAMP MOBILE".