SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 29/06/2013, 02:06 PM   #1
Ricardo_Diaz
Little Clucker
 
Join Date: May 2012
Posts: 10
Reputation: 0
Default ¬ыключение игрового мода (crash)

”важаемые пользователи, помогите пожалуйста кто знает решение данной проблемы. —тоит мод на MySQL, но бывает что просто самопроизвольно вырубаетс€. ѕодключил crashdetect, он показывает следующее (кидаю пару крашей):

Code:
[14:40:21] Incoming connection: 89.204.43.11:2254

[14:40:21] [join] Vanek_Kireew has joined the server (4:89.204.43.11)

[14:40:27] [death] Terry_Romano died 255

[14:40:38] 542, Ekaterina_Blondi, 0

[14:40:39] [debug] Server crashed while executing SLW.amx

[14:40:39] [debug] AMX backtrace:

[14:40:39] [debug] #0 00000030 in ?? () at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:2

[14:40:39] [debug] #1 0019732c in OnPlayerLoginToServer (playerid=48, ... <30 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:25726

[14:40:39] [debug] #2 00000030 in ?? () at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:2

[14:40:39] [debug] System backtrace:

[14:40:39] [debug] #0 00379ecb in _ZN10StackTraceC1EPv () from plugins/crashdetect.so

[14:40:39] [debug] #1 00371c69 in _ZN11CrashDetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so

[14:40:39] [debug] #2 00373c99 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so

[14:40:39] [debug] #3 003799d8 in ?? () from plugins/crashdetect.so

[14:40:39] [debug] #4 002d1410 in ?? ()

[14:40:39] [debug] #5 f445ec08 in ?? () from РѓQ	Штw	€€€€

[14:40:39] [debug] #6 00373e1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so

[14:40:39] [debug] #7 003762de in ?? () from plugins/crashdetect.so

[14:40:39] [debug] #8 080ae33f in ?? () from ./samp03svr

[14:40:39] [debug] #9 080b97da in ?? () from ./samp03svr

[14:40:39] [debug] #10 08071ae8 in ?? () from ./samp03svr

[14:40:39] [debug] #11 08071be2 in ?? () from ./samp03svr

[14:40:39] [debug] #12 0807ba00 in ?? () from ./samp03svr

[14:40:39] [debug] #13 080b59ad in ?? () from ./samp03svr

[14:40:39] [debug] #14 080b5b42 in ?? () from ./samp03svr

[14:40:39] [debug] #15 080b1453 in ?? () from ./samp03svr

[14:40:39] [debug] #16 0046bce6 in __libc_start_main () from /lib/libc.so.6

[14:40:39] [debug] #17 0804b521 in ?? () from ./samp03svr

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

SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
Code:
[15:32:27] [kill] Roberto_Suarez killed Mark_Ellis Shotgun

[15:32:29] [chat] [Mark_Ellis]: (

[15:32:31] [chat] [Roberto_Suarez]: )

[15:32:32] Incoming connection: 188.18.203.85:3576

[15:32:32] [join] Vanek_Kireew has joined the server (6:188.18.203.85)

[15:32:37] 269, DaNkA, 0

[15:32:42] [debug] Server crashed while executing SLW.amx

[15:32:42] [debug] AMX backtrace:

[15:32:42] [debug] #0 00000030 in ?? () at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:2

[15:32:42] [debug] #1 0019732c in OnPlayerLoginToServer (playerid=48, ... <30 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:25726

[15:32:42] [debug] #2 00000030 in ?? () at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:2

[15:32:42] [debug] System backtrace:

[15:32:42] [debug] #0 00253ecb in _ZN10StackTraceC1EPv () from plugins/crashdetect.so

[15:32:42] [debug] #1 0024bc69 in _ZN11CrashDetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so

[15:32:42] [debug] #2 0024dc99 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so

[15:32:42] [debug] #3 002539d8 in ?? () from plugins/crashdetect.so

[15:32:42] [debug] #4 003cc410 in ?? ()

[15:32:42] [debug] #5 f445ec08 in ?? () from јm•	 чЦ	€€€€

[15:32:42] [debug] #6 0024de1e in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so

[15:32:42] [debug] #7 002502de in ?? () from plugins/crashdetect.so

[15:32:42] [debug] #8 080ae33f in ?? () from ./samp03svr

[15:32:42] [debug] #9 080b97da in ?? () from ./samp03svr

[15:32:42] [debug] #10 08071ae8 in ?? () from ./samp03svr

[15:32:42] [debug] #11 08071be2 in ?? () from ./samp03svr

[15:32:42] [debug] #12 0807ba00 in ?? () from ./samp03svr

[15:32:42] [debug] #13 080b59ad in ?? () from ./samp03svr

[15:32:42] [debug] #14 080b5b42 in ?? () from ./samp03svr

[15:32:42] [debug] #15 080b1453 in ?? () from ./samp03svr

[15:32:42] [debug] #16 00cd3ce6 in __libc_start_main () from /lib/libc.so.6

[15:32:42] [debug] #17 0804b521 in ?? () from ./samp03svr

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

SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team

ѕоказывает ошибки посто€нно в этом stock:
Code:
stock OnPlayerLoginToServer(playerid)
{
	new tmp2[256];
	new string[300];
	new playername2[MAX_PLAYER_NAME];
 	format(string, sizeof(string), "SELECT * FROM `accounts` WHERE name = '%s'",Name(playerid));
	mysql_query(string);
	mysql_store_result();
	if(mysql_fetch_row_format(string))
	{
		BaseGetInt("pID", PlayerIDs[playerid]); BaseGetInt("pLevel", PlayerInfo[playerid][pLevel]); BaseGetInt("pPhousekey", PlayerInfo[playerid][pPhousekey]);
		BaseGetInt("pPbiskey", PlayerInfo[playerid][pPbiskey]); BaseGetInt("pAdmin", PlayerInfo[playerid][pAdmin]); BaseGetInt("pHelper", PlayerInfo[playerid][pHelper]);
		BaseGetInt("pForma", PlayerInfo[playerid][pForma]); BaseGetInt("pJobHeal", PlayerInfo[playerid][pJobHeal]); BaseGetInt("pJobHealLeader", PlayerInfo[playerid][pJobHealLeader]);
		BaseGetFloat("pFuelcar", PlayerInfo[playerid][pFuelcar]); BaseGetInt("pText", PlayerInfo[playerid][pText]); BaseGetInt("pPodarok1", PlayerInfo[playerid][pPodarok][0]);
		BaseGetInt("pPodarok2", PlayerInfo[playerid][pPodarok][1]); BaseGetInt("pHP", PlayerInfo[playerid][pHP]); BaseGetInt("pSatiety", PlayerInfo[playerid][pSatiety]);
		BaseGet("pKeyip", PlayerInfo[playerid][pKeyip]); BaseGet("pEmail", PlayerInfo[playerid][pEmail]); BaseGetInt("pCheckip", PlayerInfo[playerid][pCheckip]);
		BaseGetInt("pReg", PlayerInfo[playerid][pReg]);	BaseGetInt("pTut", PlayerInfo[playerid][pTut]); BaseGetInt("pGod", PlayerInfo[playerid][pGod]);
		BaseGetInt("pMes", PlayerInfo[playerid][pMes]); BaseGet("pDataReg", PlayerInfo[playerid][pDataReg]); BaseGetInt("pVhoddata", PlayerInfo[playerid][pVhoddata]);
		BaseGetInt("pVhodMes", PlayerInfo[playerid][pVhodMes]); BaseGetInt("pVhodchas", PlayerInfo[playerid][pVhodchas]); BaseGetInt("pVhodminute", PlayerInfo[playerid][pVhodminute]);
		BaseGetInt("pPhoneBook", PlayerInfo[playerid][pPhoneBook]);	BaseGetInt("pDirectory", PlayerInfo[playerid][pDirectory]); BaseGetInt("pAlcoholPerk", PlayerInfo[playerid][pAlcoholPerk]);
		BaseGet("pIp", PlayerInfo[playerid][pIp]); BaseGet("pvIp", PlayerInfo[playerid][pvIp]); BaseGet("pIpReg", PlayerInfo[playerid][pIpReg]);
		BaseGetInt("pCar", PlayerInfo[playerid][pCar]); BaseGetInt("pDonatechet", PlayerInfo[playerid][pDonatechet]); BaseGetInt("pDonatemoney", PlayerInfo[playerid][pDonatemoney]);
		BaseGetInt("pDonateRank", PlayerInfo[playerid][pDonateRank]); BaseGetInt("pSex", PlayerInfo[playerid][pSex]); BaseGetInt("pArrested", PlayerInfo[playerid][pArrested]);
		BaseGetInt("pMuted", PlayerInfo[playerid][pMuted]); BaseGetInt("pCrimes", PlayerInfo[playerid][pCrimes]); BaseGetInt("pExp", PlayerInfo[playerid][pExp]);
		BaseGetInt("pCash", PlayerInfo[playerid][pCash]); BaseGetInt("pKills", PlayerInfo[playerid][pKills]); BaseGetInt("pDeaths", PlayerInfo[playerid][pDeaths]);
		BaseGetInt("pPayCheck", PlayerInfo[playerid][pPayCheck]); BaseGetInt("pJailed", PlayerInfo[playerid][pJailed]); BaseGetInt("pCheat", PlayerInfo[playerid][pCheat]);
		BaseGetInt("pJailTime", PlayerInfo[playerid][pJailTime]); BaseGetInt("pMats", PlayerInfo[playerid][pMats]); BaseGetInt("pDrugs", PlayerInfo[playerid][pDrugs]);
		BaseGetInt("pLeader", PlayerInfo[playerid][pLeader]); BaseGetInt("pMember", PlayerInfo[playerid][pMember]); BaseGetInt("pRank", PlayerInfo[playerid][pRank]);
		BaseGetInt("pJob", PlayerInfo[playerid][pJob]); BaseGetInt("pCarLic", PlayerInfo[playerid][pCarLic]); BaseGetInt("pBizLic", PlayerInfo[playerid][pBizLic]);
		BaseGetInt("pFlyLic", PlayerInfo[playerid][pFlyLic]); BaseGetInt("pBoatLic", PlayerInfo[playerid][pBoatLic]); BaseGetInt("pFishLic", PlayerInfo[playerid][pFishLic]);
		BaseGetInt("pGunLic", PlayerInfo[playerid][pGunLic]); BaseGetInt("pSlot1", PlayerInfo[playerid][pSlot1]); BaseGetInt("pSlot2", PlayerInfo[playerid][pSlot2]);
		BaseGetInt("pSlot3", PlayerInfo[playerid][pSlot3]); BaseGetInt("pSlot4", PlayerInfo[playerid][pSlot4]); BaseGetInt("pSlot5", PlayerInfo[playerid][pSlot5]);
		BaseGetInt("pSlot6", PlayerInfo[playerid][pSlot6]); BaseGetInt("pSlot7", PlayerInfo[playerid][pSlot7]); BaseGetInt("pSlot8", PlayerInfo[playerid][pSlot8]);
		BaseGetInt("pSlot9", PlayerInfo[playerid][pSlot9]); BaseGetInt("pSlot10", PlayerInfo[playerid][pSlot10]); BaseGetInt("pSlot11", PlayerInfo[playerid][pSlot11]);
		BaseGetInt("pSlotammo1", PlayerInfo[playerid][pSlotammo1]); BaseGetInt("pSlotammo2", PlayerInfo[playerid][pSlotammo2]); BaseGetInt("pSlotammo3", PlayerInfo[playerid][pSlotammo3]);
		BaseGetInt("pSlotammo4", PlayerInfo[playerid][pSlotammo4]); BaseGetInt("pSlotammo5", PlayerInfo[playerid][pSlotammo5]); BaseGetInt("pSlotammo6", PlayerInfo[playerid][pSlotammo6]);
		BaseGetInt("pSlotammo7", PlayerInfo[playerid][pSlotammo7]); BaseGetInt("pSlotammo8", PlayerInfo[playerid][pSlotammo8]); BaseGetInt("pSlotammo9", PlayerInfo[playerid][pSlotammo9]);
		BaseGetInt("pSlotammo10", PlayerInfo[playerid][pSlotammo10]); BaseGetInt("pSlotammo11", PlayerInfo[playerid][pSlotammo11]); BaseGetInt("pGunSkill1", PlayerInfo[playerid][pGunSkill][0]);
		BaseGetInt("pGunSkill2", PlayerInfo[playerid][pGunSkill][1]); BaseGetInt("pGunSkill3", PlayerInfo[playerid][pGunSkill][2]); BaseGetInt("pGunSkill4", PlayerInfo[playerid][pGunSkill][3]);
		BaseGetInt("pGunSkill5", PlayerInfo[playerid][pGunSkill][4]); BaseGetInt("pGunSkill6", PlayerInfo[playerid][pGunSkill][5]); BaseGetInt("ptaxiexp", PlayerInfo[playerid][ptaxiexp]);
		BaseGetInt("ptaxilvl", PlayerInfo[playerid][ptaxilvl]); BaseGetInt("pDLevel", PlayerInfo[playerid][pDLevel]); BaseGetInt("pDExp", PlayerInfo[playerid][pDExp]);
		BaseGetInt("pDMgruz", PlayerInfo[playerid][pDMgruz]); BaseGetInt("pDgruz", PlayerInfo[playerid][pDgruz]); BaseGetInt("pKazpay", PlayerInfo[playerid][pKazpay]);
		BaseGetInt("pChar", PlayerInfo[playerid][pChar][0]); BaseGetInt("pChar1", PlayerInfo[playerid][pChar][1]); BaseGetInt("pChar2", PlayerInfo[playerid][pChar][2]);
		BaseGetInt("pViborChar", PlayerInfo[playerid][pViborChar]); BaseGetFloat("pSHealth", PlayerInfo[playerid][pSHealth]); BaseGetFloat("pHealth", PlayerInfo[playerid][pHealth]);
		BaseGetInt("pInt", PlayerInfo[playerid][pInt]); BaseGetInt("pLocal", PlayerInfo[playerid][pLocal]); BaseGetInt("pModel", PlayerInfo[playerid][pModel]);
		BaseGetInt("pPnumber", PlayerInfo[playerid][pPnumber]); BaseGetInt("pPayDay", PlayerInfo[playerid][pPayDay]); BaseGetInt("pPayDayHad", PlayerInfo[playerid][pPayDayHad]);
		BaseGetInt("pWarns", PlayerInfo[playerid][pWarns]); BaseGetInt("punWarns", PlayerInfo[playerid][punWarns]); BaseGetInt("punWarnstime", PlayerInfo[playerid][punWarnstime]);
		BaseGetInt("pFuel", PlayerInfo[playerid][pFuel]); BaseGetInt("pMarried", PlayerInfo[playerid][pMarried]); BaseGet("pDrug", PlayerInfo[playerid][pDrug]);
		BaseGet("pMarriedTo", PlayerInfo[playerid][pMarriedTo]); BaseGetInt("pMushrooms", PlayerInfo[playerid][pMushrooms]); BaseGetInt("pMuteTime", PlayerInfo[playerid][pMuteTime]);
		BaseGetInt("pMobile", PlayerInfo[playerid][pMobile]); BaseGetInt("pBank", PlayerInfo[playerid][pBank]); BaseGetInt("pLocked", PlayerInfo[playerid][pLocked]);
		BaseGetInt("pBanDay", PlayerInfo[playerid][pBanDay]); BaseGetInt("pBanMounth", PlayerInfo[playerid][pBanMounth]); BaseGetInt("pDolg", PlayerInfo[playerid][pDolg]);
		BaseGetInt("pKrisha", PlayerInfo[playerid][pKrisha]); BaseGetInt("pUseKrisha", PlayerInfo[playerid][pUseKrisha]); BaseGetInt("pBoxSkill", PlayerInfo[playerid][pBoxSkill]);
		BaseGetInt("pKongfuSkill", PlayerInfo[playerid][pKongfuSkill]); BaseGetInt("pKickboxSkill", PlayerInfo[playerid][pKickboxSkill]); BaseGet("pDostup", PlayerInfo[playerid][pDostup]);
		BaseGetInt("pFishes", PlayerInfo[playerid][pFishes]); BaseGetInt("pZakonp", PlayerInfo[playerid][pZakonp]); BaseGetInt("pAddiction", PlayerInfo[playerid][pAddiction]);
		BaseGetInt("pNarcoLomka", PlayerInfo[playerid][pNarcoLomka]); BaseGetInt("pProcents", PlayerInfo[playerid][pProcents]); BaseGetInt("pWheels", PlayerInfo[playerid][pWheels]);
		BaseGetInt("pPaintJob", PlayerInfo[playerid][pPaintJob]); BaseGetInt("pSpoiler", PlayerInfo[playerid][pSpoiler]); BaseGetInt("pBumper1", PlayerInfo[playerid][pBumper1]);
		BaseGetInt("pBumper2", PlayerInfo[playerid][pBumper2]); BaseGetInt("pColor1", PlayerInfo[playerid][pColor][0]); BaseGetInt("pColor2", PlayerInfo[playerid][pColor][1]);
		BaseGetInt("pNitro", PlayerInfo[playerid][pNitro]); BaseGetInt("pHydrawlic", PlayerInfo[playerid][pHydrawlic]); BaseGetInt("pAvtomas", PlayerInfo[playerid][pAvtomas]);
		BaseGetInt("pMestoJail", PlayerInfo[playerid][pMestoJail]); BaseGetInt("pSong", PlayerInfo[playerid][pSong]); BaseGetInt("pHousecash", PlayerInfo[playerid][pHousecash]);
		BaseGetInt("pKvartiraKey", PlayerInfo[playerid][pKvartirakey]); BaseGetInt("pWantedLevel", PlayerInfo[playerid][pWantedLevel]); BaseGetInt("pChas", PlayerInfo[playerid][pChas]);
		BaseGetInt("pMin", PlayerInfo[playerid][pMin]); BaseGetInt("pSkilla", PlayerInfo[playerid][pSkilla]); mysql_free_result();
		PlayerInfo[playerid][pLogin] = 1;
		format(string, sizeof(string), "UPDATE accounts SET pLogin = '%d' WHERE name = '%s'",PlayerInfo[playerid][pLogin],Name(playerid));
		mysql_query(string);
	}
	if(PlayerInfo[playerid][pLocked] == 1)
	{
		if(PlayerInfo[playerid][pBanDay] == 0) ShowPlayerDialogEx(playerid,69,DIALOG_STYLE_MSGBOX, "{B20000}¬нимание","{FF6347}Ётот аккаунт заблокирован\nƒата разбана: Ќикогда\n\n¬ведите '/q', чтобы выйти", "«акрыть", ""), Kick(playerid);
		else
		{
			new year, month,day;
			getdate(year, month, day);
			if(PlayerInfo[playerid][pBanDay] <= day && PlayerInfo[playerid][pBanMounth] <= month)
			{
				PlayerInfo[playerid][pBanDay] = 0;
				PlayerInfo[playerid][pLocked] = 0;
				SendClientMessage(playerid,COLOR_GREEN,"¬аш аккаунт был разбанен. ѕерезайдите в игру");
				Kick(playerid);
			}
			else
			{
				format(tmp2,sizeof(tmp2), "{FF6347}Ётот аккаунт заблокирован\nƒата разбана: %d/%d/%d\n\n¬ведите '/q', чтобы выйти",PlayerInfo[playerid][pBanDay],PlayerInfo[playerid][pBanMounth],year);
				ShowPlayerDialogEx(playerid,69,DIALOG_STYLE_MSGBOX, "{B20000}¬нимание",tmp2, "«акрыть", "");
				Kick(playerid);
			}
		}
	}
	new playersip[40];
	GetPlayerIp(playerid,playersip,sizeof(playersip));
	if(PlayerInfo[playerid][pCheckip] == 1)
	{
		if(strcmp(playersip, PlayerInfo[playerid][pIp]) != 0)
		{
			PlayerInfo[playerid][pLogin] = 0;
			format(string, sizeof(string), "UPDATE accounts SET pLogin = '%d' WHERE name = '%s'",PlayerInfo[playerid][pLogin],Name(playerid));
			mysql_query(string);
			SetPlayerInterior(playerid, 0);
			SetPlayerFacingAngle(playerid, 179.5547);
			SetPlayerCameraPos(playerid,1911.426269, -1774.763916, 132.995452);
			SetPlayerCameraLookAt(playerid,1908.732177, -1770.573364, 132.570449);
			TogglePlayerControllable(playerid, 0);
			ShowPlayerDialogEx(playerid,16,DIALOG_STYLE_INPUT, "¬ведите ключ безопасности", "    ==== ¬аш IP адрес сменилс€ ====\n=== ¬ведите ¬аш ключ безопасности ===", "√отово", "ќтмена");
			PlayerInfo[playerid][pLogin] = 0;
			return true;
		}
	}
	if(PlayerInfo[playerid][pCheckip] == 1)
	{
		PlayerInfo[playerid][pLogin] = 1;
		format(string, sizeof(string), "UPDATE accounts SET pLogin = '%d' WHERE name = '%s'",PlayerInfo[playerid][pLogin],Name(playerid));
		mysql_query(string);
	}
	if(PlayerInfo[playerid][pCheckip] == 0)
	{
		GetPlayerIp(playerid,playersip,sizeof(playersip));
		PlayerInfo[playerid][pLogin] = 1;
		format(string, sizeof(string), "UPDATE accounts SET pLogin = '%d',pIp = '%s' WHERE name = '%s'",PlayerInfo[playerid][pLogin],playersip,Name(playerid));
		mysql_query(string);
	}
	if(PlayerInfo[playerid][pCash] <= 0) PlayerInfo[playerid][pCash] = 0;
	if(PlayerInfo[playerid][pProcents] <= 0) PlayerInfo[playerid][pProcents] = 0;
	if(PlayerInfo[playerid][pChar][PlayerInfo[playerid][pViborChar]] == 0) PlayerInfo[playerid][pChar][PlayerInfo[playerid][pViborChar]] = 230;
	if(PlayerInfo[playerid][pAdmin] <= 0) PlayerInfo[playerid][pDostup] = 521957921;
	if(PlayerInfo[playerid][pDonateRank] > 0) SendClientMessage(playerid, 0xFEBC41AA, "«дравствуйте V.I.P игрок!"), format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~b~   %s", playername2);
	else format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~b~   %s", playername2);
	GameTextForPlayer(playerid, tmp2, 5000, 1);
	if (PlayerInfo[playerid][pText] == 4) SendClientMessage(playerid, COLOR_WHITE, "— ¬ас была сн€та лидерка организации"), PlayerInfo[playerid][pText] = 0;
	if (PlayerInfo[playerid][pText] == 5) SendClientMessage(playerid, COLOR_WHITE, "¬аша автомастерска€ была продана государству. ѕоловина стоимости зачислена на ваш счет"), PlayerInfo[playerid][pText] = 0;
	if (PlayerInfo[playerid][pText] == 3) PlayerInfo[playerid][pText] = 0, SendClientMessage(playerid, COLOR_WHITE, "¬ы получили 100 000 вирт на банковский счет, за приглашЄнного друга");
	if (PlayerInfo[playerid][pCheckip] == 0) SendClientMessage(playerid, COLOR_LIGHTRED, "” вас низка€ степень защиты! –екомендуем вам повысить уровень защиты аккаунта"), SendClientMessage(playerid, COLOR_LIGHTRED, "»зменение защиты аккаунта: /mm - [9] Ѕезопасность");
	if (PlayerInfo[playerid][pText] == 1) SendClientMessage(playerid, COLOR_LIGHTRED, "¬ы были выселены за неуплату квартплаты"), SendClientMessage(playerid, COLOR_LIGHTRED, "ƒеньги за дом вы можете получить в банке \"/GetHouseMoney\"");
	if (PlayerInfo[playerid][pText] == 2) SendClientMessage(playerid, COLOR_YELLOW, "¬аш бизнес был продан государству за простой государству. ѕоловина стоимости зачислена на ваш банковский счет"), PlayerInfo[playerid][pText] = 0;
	if(PlayerInfo[playerid][pPhousekey] != 999)
	{
		new house = PlayerInfo[playerid][pPhousekey];
		createdcar = caridhouse[playerid];
		caridhouse[playerid] = CreateVehicle(PlayerInfo[playerid][pCar], HouseInfo[house][hCarx], HouseInfo[house][hCary], HouseInfo[house][hCarz], HouseInfo[house][hCarc] , PlayerInfo[playerid][pColor][0] ,PlayerInfo[playerid][pColor][1], 86400);
		createdcar ++;
		LockCar(caridhouse[playerid]);
		Fuell[caridhouse[playerid]] = PlayerInfo[playerid][pFuelcar];
		CompVeh(playerid,caridhouse[playerid]);
		AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pWheels]);
		AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pNitro]);
		AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pHydrawlic]);
		if(PJ(caridhouse[playerid]))
		{
			ChangeVehiclePaintjob(caridhouse[playerid], PlayerInfo[playerid][pPaintJob]);
			AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pSpoiler]);
			AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBumper1]);
			AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBumper2]);
		}
	}
	PEfir[playerid] = 255;
	Pefir[playerid] = 999;
	if(!strlen(PlayerInfo[playerid][pEmail]))
	{
		format(string,sizeof(string),"јвторизаци€ прошла успешно. »гровой аккаунт: %s. ¬аш номер аккаунта: %d, Email: Ќет",Name(playerid),PlayerIDs[playerid]);
		SendClientMessage(playerid,COLOR_REDD,string);
		SendClientMessage(playerid,COLOR_RED,"”казать E-Mail вы можете в /mm => [9] Ѕезопасность => [5] ”казать E-mail");
	}
	else
	{
		format(string,sizeof(string),"јвторизаци€ прошла успешно. »гровой аккаунт: %s. ¬аш номер аккаунта: %d, Email: %s",Name(playerid),PlayerIDs[playerid],PlayerInfo[playerid][pEmail]);
		SendClientMessage(playerid,COLOR_WHITE,string);
	}
	SpawnPlayer(playerid);
	InitLockDoors(playerid);
	GangZoneShowForPlayer(playerid, Army, COLOR_YELLOW2);
	SetPlayerHealthAC(playerid, PlayerInfo[playerid][pHP]);
	ResetPlayerMoney(playerid);
	OnPlayerUpdateAc(playerid);
(строчка 25726)>>	if(PlayerInfo[playerid][pAdmin] >= 1) SendClientMessage(playerid,COLOR_BLUE,"¬ы вошли как администратор. ƒл€ авторизации, введите \"/alogin\""), SendClientMessage(playerid,COLOR_WHITE,"ѕока вы не авторизованы, вы не можете пользоватьс€ привелеги€ми.");
	return true;
}

Last edited by Ricardo_Diaz; 29/06/2013 at 02:54 PM.
Ricardo_Diaz is offline   Reply With Quote
Old 29/06/2013, 02:50 PM   #2
-Stranger-
Gangsta
 
-Stranger-'s Avatar
 
Join Date: Mar 2010
Location: TCP/IPv4
Posts: 770
Reputation: 40
Default Re: ¬ыключение игрового мода (crash)

≈щЄ один, кто не умеет читать инструкции на плагины..
Quote:
Originally Posted by -Stranger- View Post
¬от ¬ы поставили плагин crashdetect, и даже не удосужились почитать как он работает и как его настроить...
Ќужно в папке "pawno" создать файл "pawn.cfg" и вписать в него "-d3".
__________________
[Mess with the best, die like the rest]
ѕомог? - жми на . “ебе один клик, а мне при€тно
-Stranger- is offline   Reply With Quote
Old 29/06/2013, 02:56 PM   #3
Ricardo_Diaz
Little Clucker
 
Join Date: May 2012
Posts: 10
Reputation: 0
Default Re: ¬ыключение игрового мода (crash)

¬ том то и дело что в папке pawno создал файл pawn.cfg в который вписал ваш "-d3"

*ћожет быть вы имели ввиду этот ключ "-d3" в setting засунуть?
Ricardo_Diaz is offline   Reply With Quote
Old 29/06/2013, 03:25 PM   #4
-Stranger-
Gangsta
 
-Stranger-'s Avatar
 
Join Date: Mar 2010
Location: TCP/IPv4
Posts: 770
Reputation: 40
Default Re: ¬ыключение игрового мода (crash)

Ricardo_Diaz, нет, € всЄ правильно написал. ј ¬ы перекомпилировали мод после создани€ файла?

» -d3 не мой, как вы выразились, это запись отладочной информации в компилированный файл.
Quote:
-d<num> debugging level (default=-d3)
0 no symbolic information, no run-time checks
1 run-time checks, no symbolic information
2 full debug information and dynamic checking
3 same as -d2, but implies -O0
__________________
[Mess with the best, die like the rest]
ѕомог? - жми на . “ебе один клик, а мне при€тно
-Stranger- is offline   Reply With Quote
Old 29/06/2013, 03:45 PM   #5
Ricardo_Diaz
Little Clucker
 
Join Date: May 2012
Posts: 10
Reputation: 0
Default Re: ¬ыключение игрового мода (crash)

да, и на хостинге с папкой pawno стоит
Ricardo_Diaz is offline   Reply With Quote
Old 29/06/2013, 06:47 PM   #6
Ricardo_Diaz
Little Clucker
 
Join Date: May 2012
Posts: 10
Reputation: 0
Default Re: ¬ыключение игрового мода (crash)

¬се, добавил. ¬ысветило эти ошибки:

Code:
[21:33:35] [debug] Run time error 4: "Array index out of bounds"

[21:33:35] [debug]  Accessing element at index 65535 past array upper bound 1999

[21:33:35] [debug] AMX backtrace:

[21:33:35] [debug] #0 00158624 in LockCar (carid=65535) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:22947

[21:33:35] [debug] #1 001968a4 in OnPlayerLoginToServer (playerid=0) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:25694

[21:33:35] [debug] #2 00053438 in public S@@_OnDialogResponse (playerid=0, dialogid=1, response=1, listitem=-1, inputtext[]=@0x00af0db4 "denis_12012002") at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:5235

[21:33:35] [debug] #3 00019430 in Command_Add (... <5 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\pawno\include\YSI\internal\..\y_hooks/impl.inc:2237

[21:34:09] [debug] Run time error 4: "Array index out of bounds"

[21:34:09] [debug]  Accessing element at index 65535 past array upper bound 1999

[21:34:09] [debug] AMX backtrace:

[21:34:09] [debug] #0 000e1478 in public S@@_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:16200

[21:34:09] [debug] #1 00015b60 in Command_Add (... <2 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\pawno\include\YSI\internal\..\y_hooks/impl.inc:652

[21:34:09] [debug] #2 00010bb8 in Command_Add (... <2 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\pawno\include\YSI\y_iterate.inc:909

[21:34:09] [debug] #3 native CallLocalFunction () [080d2870] from samp03svr

[21:34:09] [debug] #4 0000ea48 in Command_Add (... <2 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\pawno\include\streamer.inc:361

[21:34:09] [debug] #5 00007620 in Command_Add (... <2 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\pawno\include\sscanf2.inc:229

[21:34:09] [part] Denis_Donskoy has left the server (0:1)

[21:34:15] Incoming connection: 78.25.120.22:15135

[21:34:15] [join] Fabio_Kapella has joined the server (0:78.25.120.22)

[21:34:24] Incoming connection: 95.37.189.209:53748

[21:34:25] [join] Angelika_Florezz has joined the server (1:95.37.189.209)

[21:34:40] Incoming connection: 217.118.81.26:50895

[21:34:41] [join] Denis_Surikov has joined the server (2:217.118.81.26)

[21:34:55] [debug] Server crashed while executing SLW.amx

[21:34:55] [debug] AMX backtrace:

[21:34:55] [debug] #0 0000007c in Command_Add (... <1 variable argument>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:2

[21:34:55] [debug] #1 0019732c in OnPlayerLoginToServer (playerid=124, ... <11 variable arguments>) at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:25726

[21:34:55] [debug] #2 0000007c in Command_Add () at C:\Users\»люха\Documents\ѕроект є1\—ервер\Ќова€ папка (3)\Samp-Rp.Ru\gamemodes\SLW.pwn:2

[21:34:55] [debug] System backtrace:

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

SA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
Code:
stock LockCar(carid)
{
	foreach(new i : Player)
	{
		SetVehicleParamsForPlayer(carid, i, 0, 1);
		gCarLock[carid] = 1; <<[строка 22947]
		IsLocked[carid] = 1;
	}
}
Code:
if(PlayerInfo[playerid][pPhousekey] != 999)
	{
		new house = PlayerInfo[playerid][pPhousekey];
		createdcar = caridhouse[playerid];
		caridhouse[playerid] = CreateVehicle(PlayerInfo[playerid][pCar], HouseInfo[house][hCarx], HouseInfo[house][hCary], HouseInfo[house][hCarz], HouseInfo[house][hCarc] , PlayerInfo[playerid][pColor][0] ,PlayerInfo[playerid][pColor][1], 86400);
		createdcar ++;
		LockCar(caridhouse[playerid]);
		Fuell[caridhouse[playerid]] = PlayerInfo[playerid][pFuelcar]; <<[—трока 25694]
		CompVeh(playerid,caridhouse[playerid]);
		AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pWheels]);
		AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pNitro]);
		AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pHydrawlic]);
		if(PJ(caridhouse[playerid]))
		{
			ChangeVehiclePaintjob(caridhouse[playerid], PlayerInfo[playerid][pPaintJob]);
			AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pSpoiler]);
			AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBumper1]);
			AddVehicleComponent (caridhouse[playerid], PlayerInfo[playerid][pBumper2]);
		}
	}
Code:
if(MechanicOn[playerid] != -1) MechanicOn[playerid] = -1, SetPlayerSkin(playerid,PlayerInfo[playerid][pChar][PlayerInfo[playerid][pViborChar]]);
	if(caridhouse[playerid] != -1)
	{
	    new bool:proverka;
	    foreach (new i : Player) if(avtocar[i] == caridhouse[playerid]) proverka = true;
		if(proverka == true) caroff[caridhouse[playerid]] = 1;
		else DestroyVehicle(caridhouse[playerid]);
		PlayerInfo[playerid][pProcents] = PlayerInfo[playerid][pProcents];
		PlayerInfo[playerid][pFuelcar] = Fuell[caridhouse[playerid]]; <<[—трока 16200]
		caridhouse[playerid] = -1;
		createdcar --;
	}
Code:
SpawnPlayer(playerid);
	InitLockDoors(playerid);
	GangZoneShowForPlayer(playerid, Army, COLOR_YELLOW2);
	SetPlayerHealthAC(playerid, PlayerInfo[playerid][pHP]);
	ResetPlayerMoney(playerid);
	OnPlayerUpdateAc(playerid);
	if(PlayerInfo[playerid][pAdmin] >= 1) SendClientMessage(playerid,COLOR_BLUE,"¬ы вошли как администратор. ƒл€ авторизации, введите \"/alogin\""), SendClientMessage(playerid,COLOR_WHITE,"ѕока вы не авторизованы, вы не можете пользоватьс€ привелеги€ми."); <<[—трока 25726]
Code:
AntiDeAMX2() <<[—трока 2]

Last edited by Ricardo_Diaz; 29/06/2013 at 07:26 PM.
Ricardo_Diaz is offline   Reply With Quote
Old 29/06/2013, 07:41 PM   #7
Jon_De
High-roller
 
Join Date: Mar 2011
Location: ru
Posts: 1,246
Reputation: 21
Default Re: ¬ыключение игрового мода (crash)

выход за предел массива
Jon_De is offline   Reply With Quote
Old 29/06/2013, 08:55 PM   #8
Ricardo_Diaz
Little Clucker
 
Join Date: May 2012
Posts: 10
Reputation: 0
Default Re: ¬ыключение игрового мода (crash)

ј как точно исправить, не подскажете?
Ricardo_Diaz is offline   Reply With Quote
Old 30/06/2013, 06:10 AM   #9
Mutha_X
Gangsta
 
Join Date: Sep 2009
Location: recursion
Posts: 658
Reputation: 37
Default Re: ¬ыключение игрового мода (crash)

ћы типа должны всЄ за теб€ сделать? » не отнекивайс€, ибо найти решение проблемы всЄравно что уже всЄ сделать.
Mutha_X is offline   Reply With Quote
Old 06/07/2013, 02:30 PM   #10
Avenue
Little Clucker
 
Join Date: Jun 2013
Posts: 1
Reputation: 0
Default Re: ¬ыключение игрового мода (crash)

—талкивалс€ с такой же проблемой, решил еЄ.
—тучи в скайп: avenue971
Avenue is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
¬ыключение сервера (Linux) Sergeyhach Русский/Russian 5 05/05/2013 05:19 PM
MySQL R7 отключение и подключение к базе(проблема) Lamp27 Русский/Russian 5 30/11/2012 06:10 PM
[ѕроблема] —амопроизвольное выключение сервера Vlad_Dredd Русский/Russian 6 25/05/2012 01:29 AM
¬ыключение сервера Xa0s Русский/Russian 3 04/02/2012 08:11 AM
¬незапное выключение сервера anonim15 Русский/Russian 8 23/09/2011 03:56 PM


All times are GMT. The time now is 03:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.