Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

MySQL R7, Падение сервера

Статус
В этой теме нельзя размещать новые ответы.

Pelmen

Новичок
Здравствуйте,
Не могу понять из за чего падает сервер.
Сервер работает, все нормально, люди заходят выходят и сервер не падает, но иногда он падает, и вот последние записи:

PHP:
[15:49:34] [part] * has left the server (2:1)
[15:50:25] [part] * has left the server (4:0)
[15:53:51] [part] * has left the server (1:1)
[15:54:34] Incoming connection: *
[15:54:35] [join] * has joined the server *
[15:54:38] Шаг 1
[15:54:39] Шаг 2


PHP:
[15:54:38] >> mysql_format( Connection handle: 1 )
[15:54:38] >> mysql_query_callback( Connection handle: 1 )
[15:54:38] Passing query SELECT `Name` FROM `Users` WHERE `Name` = '*' | i
[15:54:39] ProcessQueryThread(OnPlayerRegCheck) - Query was successful. (SELECT `Name` FROM `Users` WHERE `Name` = '*')
[15:54:39] ProcessQueryThread(OnPlayerRegCheck) - Data caching enabled.
[15:54:39] CMySQLHandler::StoreResult() - Result was stored.
[15:54:39] CMySQLHandler::FreeResult() - Result was successfully free'd.
[15:54:39] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[15:54:39] OnPlayerRegCheck(i) - Threaded function called.
[15:54:39] >> cache_get_data( Connection handle: 1 )
[15:54:39] ProcessTick() - The cache has been cleared.
После, сервер упал.

Шаг 1:
PHP:
mysql_format(connectionHandle, mysql_query, "SELECT `Name` FROM `"TABLE_ACCOUNTS"` WHERE `Name` = '%s'", PlayerInfo[playerid][pName]);
    mysql_function_query(connectionHandle, mysql_query, true, "OnPlayerRegCheck", "i", playerid);
Шаг 2: Показываем диалог реги/логина

Если игрок зареган, то после диалога:
PHP:
stock OnPlayerLogin(i, password[])
{
    if(!IsPlayerConnected(i)) return true;
    if(mysql_ping() != 1) mysql_reconnect();
    mysql_format(connectionHandle, mysql_query, "SELECT * FROM `"TABLE_ACCOUNTS"` WHERE `Name` = '%s' AND `Key` = '%s'", PlayerInfo[i][pName], password);
    mysql_function_query(connectionHandle, mysql_query, true, "LoginCallback","is", i, password);
    return true;
}
Если не зареган:
PHP:
stock OnPlayerRegister(i, password[])
{
 	if(!IsPlayerConnected(i)) return true;
    if(mysql_ping() != 1) mysql_reconnect();
    mysql_format(connectionHandle, mysql_query, "INSERT INTO `"TABLE_ACCOUNTS"` (`Name`, `Key`) VALUES ('%s', '%s')", PlayerInfo[i][pName], password);
    mysql_function_query(connectionHandle, mysql_query, false, "RegisterCallback","is", i,password);
    print("Øàã 3");
	return true;
}
Далее паблик загрузки/спавна.
Паблик OnQueryError не чего не пишет, я думаю хостинг тупит.
Какие у Вас идеи?

RegisterCallback
public RegisterCallback(i, password[])
PHP:
{
    if(!IsPlayerConnected(i)) return true;
	SetPVarInt(i,"Regs",1);
 	LoginCallback(i, password);
    return true;
}
LoginCallback
PHP:
public LoginCallback(playerid, password[])
{
    	if(!IsPlayerConnected(playerid)) return true;
	    new string[144], maximum[75];
	    if(GetPVarInt(playerid,"Regs")==0)
	    {
		    cache_get_data(rows, fields);
		    if(!rows)
		    {
		        		if(passl[playerid] == 0) return Kick(playerid);
		                new loginmsg[256];
		            	PlayerPlaySound(playerid, 1097, 0.0, 0.0, 10.0);
		            	format(loginmsg,sizeof(loginmsg),"                 {FFFFFF}Добро пожаловать на Project RPG!\n      Данный аккаунт уже зарегистрирован, введите пароль:\n   "#ogt"Если Вы утратили доступ к аккаунту, нажмите кнопку E-Mail");
						SPD(playerid,1,DIALOG_STYLE_INPUT,"*",loginmsg,"Войти","Отмена");
		            	passl[playerid]--;
		            	format(string, sizeof(string), "Неверный пароль.Осталось попыток ввода: %d",passl[playerid]);
						send(playerid,COLOR_RED, string);
						return true;
		    }
		    cache_get_field_content(0, "ID", maximum), PlayerInfo[playerid][pID]=strval(maximum);
		    printf("ID %i",PlayerInfo[playerid][pID]);
	    	cache_get_field_content(0, "Key", PlayerInfo[playerid][pKey]);
	    	printf("Key %s",PlayerInfo[playerid][pKey]);
	  		cache_get_field_content(0, "Level", maximum),PlayerInfo[playerid][pLevel]=strval(maximum);
	  		printf("LVL %i",PlayerInfo[playerid][pLevel]);
		    cache_get_field_content(0, "AdminLevel", maximum),PlayerInfo[playerid][pAdmin]=strval(maximum);
			cache_get_field_content(0, "HelperLevel", maximum),PlayerInfo[playerid][pHelper]=strval(maximum);
			cache_get_field_content(0, "Donate", maximum),PlayerInfo[playerid][pDonate]=strval(maximum);
			cache_get_field_content(0, "ServerStatus", maximum),PlayerInfo[playerid][pStatus]=strval(maximum);
	  		cache_get_field_content(0, "Registered", maximum),PlayerInfo[playerid][pReg]=strval(maximum);
			cache_get_field_content(0, "Sex", maximum),PlayerInfo[playerid][pSex]=strval(maximum);
			cache_get_field_content(0, "Age", maximum),PlayerInfo[playerid][pAge]=strval(maximum);
			cache_get_field_content(0, "Origin", maximum),PlayerInfo[playerid][pOrigin]=strval(maximum);
			cache_get_field_content(0, "Muted", maximum),PlayerInfo[playerid][pMuted]=strval(maximum);
			cache_get_field_content(0, "Respect", maximum),PlayerInfo[playerid][pExp]=strval(maximum);
			cache_get_field_content(0, "Money", maximum),PlayerInfo[playerid][pMoney]=strval(maximum);
			cache_get_field_content(0, "Bank", maximum),PlayerInfo[playerid][pAccount]=strval(maximum);
			cache_get_field_content(0, "Crimes", maximum),PlayerInfo[playerid][pCrimes]=strval(maximum);
			cache_get_field_content(0, "Kills", maximum),PlayerInfo[playerid][pKills]=strval(maximum);
			cache_get_field_content(0, "Deaths", maximum),PlayerInfo[playerid][pDeaths]=strval(maximum);
			cache_get_field_content(0, "Phonebook", maximum),PlayerInfo[playerid][pPhoneBook]=strval(maximum);
			cache_get_field_content(0, "Fishes", maximum),PlayerInfo[playerid][pFishes]=strval(maximum);
			cache_get_field_content(0, "Job", maximum),PlayerInfo[playerid][pJob]=strval(maximum);
			cache_get_field_content(0, "Paycheck", maximum),PlayerInfo[playerid][pPayCheck]=strval(maximum);
			cache_get_field_content(0, "HeadValue", maximum),PlayerInfo[playerid][pHeadValue]=strval(maximum);
			cache_get_field_content(0, "Jailed", maximum),PlayerInfo[playerid][pJailed]=strval(maximum);
			cache_get_field_content(0, "JailTime", maximum),PlayerInfo[playerid][pJailTime]=strval(maximum);
			cache_get_field_content(0, "Materials", maximum),PlayerInfo[playerid][pMats]=strval(maximum);
			cache_get_field_content(0, "Drugs", maximum),PlayerInfo[playerid][pDrugs]=strval(maximum);
			cache_get_field_content(0, "LevelDost", maximum),PlayerInfo[playerid][pLevelDost]=strval(maximum);
			cache_get_field_content(0, "DrugsDost", maximum),PlayerInfo[playerid][pDrugsDost]=strval(maximum);
			cache_get_field_content(0, "FishDost", maximum),PlayerInfo[playerid][pFishDost]=strval(maximum);
			cache_get_field_content(0, "GonkaDost", maximum),PlayerInfo[playerid][pGonkaDost]=strval(maximum);
			cache_get_field_content(0, "ZonaDost", maximum),PlayerInfo[playerid][pZonaDost]=strval(maximum);
			cache_get_field_content(0, "AmmoDost", maximum),PlayerInfo[playerid][pAmmoDost]=strval(maximum);
			cache_get_field_content(0, "PaintDost", maximum),PlayerInfo[playerid][pPaintDost]=strval(maximum);
			cache_get_field_content(0, "MexDost", maximum),PlayerInfo[playerid][pMexDost]=strval(maximum);
			cache_get_field_content(0, "MusorDost", maximum),PlayerInfo[playerid][pMusorDost]=strval(maximum);
			cache_get_field_content(0, "SuDost", maximum),PlayerInfo[playerid][pSuDost]=strval(maximum);
			cache_get_field_content(0, "PrestDost", maximum),PlayerInfo[playerid][pPrestDost]=strval(maximum);
			cache_get_field_content(0, "DuelDost", maximum),PlayerInfo[playerid][pDuelDost]=strval(maximum);
			cache_get_field_content(0, "MeshokDost", maximum),PlayerInfo[playerid][pMeshokDost]=strval(maximum);
			cache_get_field_content(0, "TaxiDost", maximum),PlayerInfo[playerid][pTaxiDost]=strval(maximum);
			cache_get_field_content(0, "RaceMoneyDost", maximum),PlayerInfo[playerid][pRaceMoneyDost ]=strval(maximum);
			cache_get_field_content(0, "ProdsDost", maximum),PlayerInfo[playerid][pProdsDost]=strval(maximum);
			cache_get_field_content(0, "TaxDost", maximum),PlayerInfo[playerid][pTaxDost]=strval(maximum);
			cache_get_field_content(0, "Dm", maximum),PlayerInfo[playerid][pDonateMoney]=strval(maximum);
			cache_get_field_content(0, "Leader", maximum),PlayerInfo[playerid][pLeader]=strval(maximum);
			cache_get_field_content(0, "Member", maximum),PlayerInfo[playerid][pMember]=strval(maximum);
			cache_get_field_content(0, "FWarns", maximum),PlayerInfo[playerid][pFWarns]=strval(maximum);
			cache_get_field_content(0, "FMember", maximum),PlayerInfo[playerid][pFMember]=strval(maximum);
			cache_get_field_content(0, "Rank", maximum),PlayerInfo[playerid][pRank]=strval(maximum);
			cache_get_field_content(0, "Char", maximum),PlayerInfo[playerid][pChar]=strval(maximum);
			cache_get_field_content(0, "CharSlot1", maximum),PlayerInfo[playerid][pCharSlot1]=strval(maximum);
			cache_get_field_content(0, "CharSlot2", maximum),PlayerInfo[playerid][pCharSlot2]=strval(maximum);
			cache_get_field_content(0, "CharSlot3", maximum),PlayerInfo[playerid][pCharSlot3]=strval(maximum);
			cache_get_field_content(0, "CharSlot4", maximum),PlayerInfo[playerid][pCharSlot4]=strval(maximum);
			cache_get_field_content(0, "CharSlot5", maximum),PlayerInfo[playerid][pCharSlot5]=strval(maximum);
			cache_get_field_content(0, "CharSlot6", maximum),PlayerInfo[playerid][pCharSlot6]=strval(maximum);
			cache_get_field_content(0, "CharSlot7", maximum),PlayerInfo[playerid][pCharSlot7]=strval(maximum);
			cache_get_field_content(0, "CharSlot8", maximum),PlayerInfo[playerid][pCharSlot8]=strval(maximum);
			cache_get_field_content(0, "CharSlot9", maximum),PlayerInfo[playerid][pCharSlot9]=strval(maximum);
			cache_get_field_content(0, "CharSlot10", maximum),PlayerInfo[playerid][pCharSlot10]=strval(maximum);
			cache_get_field_content(0, "CharSlot11", maximum),PlayerInfo[playerid][pCharSlot11]=strval(maximum);
			cache_get_field_content(0, "DetSkill", maximum),PlayerInfo[playerid][pDetSkill]=strval(maximum);
			cache_get_field_content(0, "SexSkill", maximum),PlayerInfo[playerid][pSexSkill]=strval(maximum);
			cache_get_field_content(0, "LawSkill", maximum),PlayerInfo[playerid][pLawSkill]=strval(maximum);
			cache_get_field_content(0, "MechSkill", maximum),PlayerInfo[playerid][pMechSkill]=strval(maximum);
			cache_get_field_content(0, "JackSkill", maximum),PlayerInfo[playerid][pJackSkill]=strval(maximum);
			cache_get_field_content(0, "CarSkill", maximum),PlayerInfo[playerid][pCarSkill]=strval(maximum);
			cache_get_field_content(0, "NewsSkill", maximum),PlayerInfo[playerid][pNewsSkill]=strval(maximum);
			cache_get_field_content(0, "DrugsSkill", maximum),PlayerInfo[playerid][pDrugsSkill]=strval(maximum);
			cache_get_field_content(0, "FishSkill", maximum),PlayerInfo[playerid][pFishSkill]=strval(maximum);
			cache_get_field_content(0, "pSHealth", maximum),PlayerInfo[playerid][pSHealth]=floatstr(maximum);
			cache_get_field_content(0, "pHealth", maximum),PlayerInfo[playerid][pHealth]=floatstr(maximum);
			cache_get_field_content(0, "Local", maximum),PlayerInfo[playerid][pLocal]=strval(maximum);
			cache_get_field_content(0, "PhoneNr", maximum),PlayerInfo[playerid][pPnumber]=strval(maximum);
			cache_get_field_content(0, "House", maximum),PlayerInfo[playerid][pPhousekey]=strval(maximum);
			cache_get_field_content(0, "Bizz", maximum),PlayerInfo[playerid][pPbiskey]=strval(maximum);
			cache_get_field_content(0, "CarLic", maximum),PlayerInfo[playerid][pCarLic]=strval(maximum);
			cache_get_field_content(0, "FlyLic", maximum),PlayerInfo[playerid][pFlyLic]=strval(maximum);
			cache_get_field_content(0, "BoatLic", maximum),PlayerInfo[playerid][pBoatLic]=strval(maximum);
			cache_get_field_content(0, "FishLic", maximum),PlayerInfo[playerid][pFishLic]=strval(maximum);
			cache_get_field_content(0, "GunLic", maximum),PlayerInfo[playerid][pGunLic]=strval(maximum);
			cache_get_field_content(0, "Gun1", maximum),PlayerInfo[playerid][pGun1]=strval(maximum);
			cache_get_field_content(0, "Gun2", maximum),PlayerInfo[playerid][pGun2]=strval(maximum);
			cache_get_field_content(0, "Gun3", maximum),PlayerInfo[playerid][pGun3]=strval(maximum);
			cache_get_field_content(0, "Gun4", maximum),PlayerInfo[playerid][pGun4]=strval(maximum);
			cache_get_field_content(0, "Ammo1", maximum),PlayerInfo[playerid][pAmmo1]=strval(maximum);
			cache_get_field_content(0, "Ammo2", maximum),PlayerInfo[playerid][pAmmo2]=strval(maximum);
			cache_get_field_content(0, "Ammo3", maximum),PlayerInfo[playerid][pAmmo3]=strval(maximum);
			cache_get_field_content(0, "Ammo4", maximum),PlayerInfo[playerid][pAmmo4]=strval(maximum);
			cache_get_field_content(0, "PayDay", maximum),PlayerInfo[playerid][pPayDay]=strval(maximum);
			cache_get_field_content(0, "CDPlayer", maximum),PlayerInfo[playerid][pCDPlayer]=strval(maximum);
			cache_get_field_content(0, "AlcoholPerk", maximum),PlayerInfo[playerid][pAlcoholPerk]=strval(maximum);
			cache_get_field_content(0, "DrugPerk", maximum),PlayerInfo[playerid][pDrugPerk]=strval(maximum);
			cache_get_field_content(0, "MiserPerk", maximum),PlayerInfo[playerid][pMiserPerk]=strval(maximum);
			cache_get_field_content(0, "PainPerk", maximum),PlayerInfo[playerid][pPainPerk]=strval(maximum);
			cache_get_field_content(0, "TraderPerk", maximum),PlayerInfo[playerid][pTraderPerk]=strval(maximum);
			cache_get_field_content(0, "MuteTime", maximum),PlayerInfo[playerid][pMuteTime]=strval(maximum);
			cache_get_field_content(0, "Warnings", maximum),PlayerInfo[playerid][pWarns]=strval(maximum);
			cache_get_field_content(0, "Fuel", maximum),PlayerInfo[playerid][pFuel]=strval(maximum);
			cache_get_field_content(0, "CarKey2", maximum),PlayerInfo[playerid][pCarKey2]=strval(maximum);
			cache_get_field_content(0, "VehKey", maximum),PlayerInfo[playerid][pVehKey]=strval(maximum);
			cache_get_field_content(0, "Auto", maximum),PlayerInfo[playerid][pCarKey]=strval(maximum);
			cache_get_field_content(0, "Married", maximum),PlayerInfo[playerid][pMarried]=strval(maximum);
			cache_get_field_content(0, "DayTax", maximum),PlayerInfo[playerid][pDayTax]=strval(maximum);
			cache_get_field_content(0, "WarnTime", maximum),PlayerInfo[playerid][pWarnTime]=strval(maximum);
			cache_get_field_content(0, "Email", maximum),PlayerInfo[playerid][pEmail]=strval(maximum);
			cache_get_field_content(0, "Invite", maximum),PlayerInfo[playerid][pInvite]=strval(maximum);
			cache_get_field_content(0, "EmailReg", maximum),PlayerInfo[playerid][pEmailReg]=strval(maximum);
			cache_get_field_content(0, "ChangeName", maximum), PlayerInfo[playerid][pChangeName]=strval(maximum);
			cache_get_field_content(0, "CarNumber", maximum),PlayerInfo[playerid][pCarNumber]=strval(maximum);
			cache_get_field_content(0, "pDataReg", maximum),PlayerInfo[playerid][pDataReg]=strval(maximum);
			cache_get_field_content(0, "VipTime", maximum),PlayerInfo[playerid][pVipTime]=strval(maximum);
			cache_get_field_content(0, "DeathsP", maximum),PlayerInfo[playerid][pDeathsP]=strval(maximum);
			cache_get_field_content(0, "KillsP", maximum),PlayerInfo[playerid][pKillsP]=strval(maximum);
			cache_get_field_content(0, "Forum", maximum),PlayerInfo[playerid][pForum]=strval(maximum);
			cache_get_field_content(0, "Sigars", maximum),PlayerInfo[playerid][pSigars]=strval(maximum);
			cache_get_field_content(0, "Zhiga", maximum),PlayerInfo[playerid][pZhiga]=strval(maximum);
			cache_get_field_content(0, "fMute", maximum),PlayerInfo[playerid][pfMute]=strval(maximum);
			cache_get_field_content(0, "Uron", maximum),PlayerInfo[playerid][pUron]=strval(maximum);
	        cache_get_field_content(0, "MarriedTo",PlayerInfo[playerid][pMarriedTo]);
		}
		new namenew[2][20];
		new name[MAX_PLAYER_NAME];
		new newt[MAX_PLAYERS];
		ConsumingMoney[playerid] = 1;
		PlayerInfo[playerid][pMuteTime] = 0;
		PlayerInfo[playerid][pMuted] = 0;
		NormMoney[playerid] = 2;
		GivePM(playerid,0);
		gPlayerLogged[playerid] = 1;
		if(GetPVarInt(playerid,"Regs")==1)
		{
			PlayerInfo[playerid][pLevel] = 1;
			PlayerInfo[playerid][pSHealth] = 0.0;
			PlayerInfo[playerid][pHealth] = 50.0;
			PlayerInfo[playerid][pLocal] = 255;
			PlayerInfo[playerid][pPnumber] = 0;
			PlayerInfo[playerid][pPhousekey] = 255;
			PlayerInfo[playerid][pPbiskey] = MAX_BIZ;
			PlayerInfo[playerid][pReg] = 1;
			PlayerInfo[playerid][pVipTime] = 0;
			PlayerInfo[playerid][pDayTax]= DayTax;
			TogglePlayerControllable(playerid, 0),SetPlayerSkin(playerid, 79);
			Regs++;
			RegOst[playerid] = 1;
			Registers++;
			SPD(playerid,3,DIALOG_STYLE_MSGBOX,"*","{FFFFFF}Выберите пол для Вашего персонажа","Мужчина","Женщина");
	 		return false;
		}
		OnPlayerSpawn(playerid);
		SpawnPlayer(playerid);
		SetPlayerSpawn(playerid);
	    newt[playerid] = 0;
	    GetPlayerName(playerid,name,sizeof(name));
		printf("%s вошел на сервер",PlayerInfo[playerid][pName]);
		if(PlayerInfo[playerid][pLevel] == 20) { PlayerInfo[playerid][pSHealth] = PlayerInfo[playerid][pSHealth] + 50.0; }
		TextDrawShowForPlayer(playerid,Textdraw13[playerid]);
		TextDrawShowForPlayer(playerid,Textdraw14[playerid]);
		SetTimerEx("TextDrawW",5000,0,"%d",playerid);
		if(PlayerInfo[playerid][pDonate] < 3)
		{
	    	if(PlayerInfo[playerid][pLevel] > 3)
			{
	    		if(strfind(name,"_",true) == -1) ShowMenuName(playerid);
	    		for(new i = 0; i < strlen(name); i++)
			    {
			        if(!strcmp(name[i],"_",true)) newt[playerid] = newt[playerid] + 1;
			    }
	    		if(newt[playerid] > 1) ShowMenuName(playerid);
	    		split(name, namenew, '_');
	    		for(new i = 1; i < strlen(namenew[0]); i++)
	    		{
	    		    if(!isalpha(namenew[0][i]))
	    		    {
						ShowMenuName(playerid);
	    		        break;
	    		    }
	   		 	}
	    		for(new i = 1; i < strlen(namenew[1]); i++)
	    		{
	    		    if(!isalpha(namenew[1][i]))
	    		    {
						ShowMenuName(playerid);
	    		        break;
	    		    }
	    		}
	    		if(!strlen(namenew[0])) ShowMenuName(playerid);
			    if(!strlen(namenew[1])) ShowMenuName(playerid);
			    if(!isupper(namenew[0][0])) ShowMenuName(playerid);
			    if(!isupper(namenew[1][0])) ShowMenuName(playerid);
			    for(new i = 1; i < strlen(namenew[0]); i++)
			    {
			        if(!islower(namenew[0][i]))
			        {
						ShowMenuName(playerid);
			            break;
			        }
			    }
			    for(new i = 1; i < strlen(namenew[1]); i++)
			    {
			        if(!islower(namenew[1][i]))
			        {
						ShowMenuName(playerid);
			            break;
			        }
			    }
			}
		}
		format(string, sizeof(string), "Добро пожаловать, {b0daf9}%s",PlayerInfo[playerid][pName]);
		send(playerid,0xFFFFFFFF,string);
		if(PlayerInfo[playerid][pDonate] >= 1)
		{
	        format(string, sizeof(string), "Вы вошли как {b0daf9}VIP {FFFFFF}игрок {b0daf9}[%d lvl], VIP {ffffff}действителен до {b0daf9}%s {ffffff}(сегодня: %s)",PlayerInfo[playerid][pDonate],date("%yyyy-%mm-%dd",PlayerInfo[playerid][pVipTime]),date("%yyyy-%mm-%dd",gettime()));
	        send(playerid, 0xFFFFFFFF,string);
		}
		if(PlayerInfo[playerid][pAdmin] >= 1)
		{
	        format(string, sizeof(string), "Вы вошли как администратор {b0daf9}%d {FFFFFF}уровня",PlayerInfo[playerid][pAdmin]);
	        send(playerid, 0xFFFFFFFF,string);
		}
		if(PlayerInfo[playerid][pDonate] >= 1)
		{
			if(gettime() >= PlayerInfo[playerid][pVipTime])
			{
				PlayerInfo[playerid][pDonate] = 0;
				PlayerInfo[playerid][pVipTime] = 0;
			}
		}
		if(PlayerInfo[playerid][pWarns] > 0)
		{
			if(gettime() >= PlayerInfo[playerid][pWarnTime])
			{
				PlayerInfo[playerid][pWarnTime] = 0;
				PlayerInfo[playerid][pWarns] = 0;
				send(playerid,COLOR_WHITE,"С Вашего аккаунта сброшены все предупреждения");
			}
		}
	 	if(PlayerInfo[playerid][pCarKey] != 0)
		{
		    GetAuto(playerid);
		}
		if(PlayerInfo[playerid][pLevel] >= 3) { if(PlayerInfo[playerid][pEmailReg] == 0) return send(playerid, COLOR_RED,"[Внимание] {ffffff}На Вашем аккаунте не указан E-Mail адрес, подробности: /menu - Безопасность"); }
		if(PlayerInfo[playerid][pLevel] >= 5) { if(PlayerInfo[playerid][pForum] == 0) return send(playerid, COLOR_RED,"[Внимание] {ffffff}Вы можете зарегистрировать аккаунт на форуме, подробности: /menu - Регистрация на форуме"); }
		if(PlayerInfo[playerid][pPhousekey] != 0)
		{
		    new h = PlayerInfo[playerid][pPhousekey];
			SetPlayerMapIcon(playerid,35,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],35,0);//Иконка дома
		}
		DateProp(playerid);
		new strstrstr[256];
		if(PlayerInfo[playerid][pPbiskey] != MAX_BIZ)
		{
		    if(PlayerInfo[playerid][pPbiskey] >= 100)
		    {
		    	format(strstrstr,sizeof(strstrstr),"%s",SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner]);
		    	if(!strcmp(strstrstr,PlayerInfo[playerid][pName],true)){}
		    	else{PlayerInfo[playerid][pPbiskey] = MAX_BIZ;}
		    }
		    else
		    {
		    	format(strstrstr,sizeof(strstrstr),"%s",BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner]);
		    	if(!strcmp(strstrstr,PlayerInfo[playerid][pName],true)){}
		    	else{PlayerInfo[playerid][pPbiskey] = MAX_BIZ;}
		    }
		}
		if(PlayerInfo[playerid][pDayTax] < DayTax)
		{
			if(PlayerInfo[playerid][pAccount] >= servertax)
			{
			    new taxdb = PlayerInfo[playerid][pAccount]/100;
		    	PlayerInfo[playerid][pAccount] -= taxdb;
		    	PlayerInfo[playerid][pDayTax] = DayTax;
		    	if(PlayerInfo[playerid][pTaxDost] < 500000) PlayerInfo[playerid][pTaxDost] += taxdb;
				if(PlayerInfo[playerid][pTaxDost] > 500000) PlayerInfo[playerid][pTaxDost] = 500000;
	 		}
			if(PlayerInfo[playerid][pAccount] >= servertax)
			{
			    new taxd = PlayerInfo[playerid][pMoney]/100;
				GivePM(playerid, - taxd);
		    	PlayerInfo[playerid][pDayTax] = DayTax;
		    	if(PlayerInfo[playerid][pTaxDost] < 500000) PlayerInfo[playerid][pTaxDost] += taxd;
				if(PlayerInfo[playerid][pTaxDost] > 500000) PlayerInfo[playerid][pTaxDost] = 500000;
	 		}
		}
    	return 1;
}
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу