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



Не найдено.

11 posts in this topic

Здравствуйте, вырезал систему центрального рынка, компиляция прошла успешно. но не работает alt помогите (код + скрин)

Спойлер

bNosNa63KWE.jpg

Спойлер

}
   		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl1 ))
		{
			if(pavka[1] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 1;
				ShowLavkaDialog(playerid);
			}
			if(pavka[1] == 1)
			{
				if (PI[playerid][pmyLavka] == 1)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 1;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl2 ))
		{
			if(pavka[2] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 2;
				ShowLavkaDialog(playerid);
			}
			if(pavka[2] == 1)
			{
				if (PI[playerid][pmyLavka] == 2)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 2;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl3 ))
		{
			if(pavka[3] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 3;
				ShowLavkaDialog(playerid);
			}
			if(pavka[3] == 1)
			{
				if (PI[playerid][pmyLavka] == 3)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 3;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl4 ))
		{
			if(pavka[4] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 4;
				ShowLavkaDialog(playerid);
			}
			if(pavka[4] == 1)
			{
				if (PI[playerid][pmyLavka] == 4)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 4;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl5 ))
		{
			if(pavka[5] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 5;
				ShowLavkaDialog(playerid);
			}
			if(pavka[5] == 1)
			{
				if (PI[playerid][pmyLavka] == 5)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 5;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl6 ))
		{
			if(pavka[6] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 6;
				ShowLavkaDialog(playerid);
			}
			if(pavka[6] == 1)
			{
				if (PI[playerid][pmyLavka] == 6)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 6;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl7 ))
		{
			if(pavka[7] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 7;
				ShowLavkaDialog(playerid);
			}
			if(pavka[7] == 1)
			{
				if (PI[playerid][pmyLavka] == 7)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 7;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl8 ))
		{
			if(pavka[8] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 8;
				ShowLavkaDialog(playerid);
			}
			if(pavka[8] == 1)
			{
				if (PI[playerid][pmyLavka] == 8)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 8;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl9 ))
		{
			if(pavka[9] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 9;
				ShowLavkaDialog(playerid);
			}
			if(pavka[9] == 1)
			{
				if (PI[playerid][pmyLavka] == 9)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 9;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl10 ))
		{
			if(pavka[10] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 10;
				ShowLavkaDialog(playerid);
			}
			if(pavka[10] == 1)
			{
				if (PI[playerid][pmyLavka] == 10)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 10;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl11 ))
		{
			if(pavka[11] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 11;
				ShowLavkaDialog(playerid);
			}
			if(pavka[11] == 1)
			{
				if (PI[playerid][pmyLavka] == 11)
				{
					ShowLavkaDialogItem(playerid);
				}
				else
				{
				    PI[playerid][pItemLavka] = 11;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl12 ))
		{
			if(pavka[12] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 12;
				ShowLavkaDialog(playerid);
			}
			if(pavka[12] == 1)
			{
				if (PI[playerid][pmyLavka] == 12)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 12;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl13 ))
		{
			if(pavka[13] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 13;
				ShowLavkaDialog(playerid);
			}
			if(pavka[13] == 1)
			{
				if (PI[playerid][pmyLavka] == 13)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 13;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl14 ))
		{
			if(pavka[14] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 14;
				ShowLavkaDialog(playerid);
			}
			if(pavka[14] == 1)
			{
				if (PI[playerid][pmyLavka] == 14)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 14;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl15 ))
		{
			if(pavka[15] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 15;
				ShowLavkaDialog(playerid);
			}
			if(pavka[15] == 1)
			{
				if (PI[playerid][pmyLavka] == 15)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 15;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl16 ))
		{
			if(pavka[16] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 16;
				ShowLavkaDialog(playerid);
			}
			if(pavka[16] == 1)
			{
				if (PI[playerid][pmyLavka] == 16)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 16;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl17 ))
		{
			if(pavka[17] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 17;
				ShowLavkaDialog(playerid);
			}
			if(pavka[17] == 1)
			{
				if (PI[playerid][pmyLavka] == 17)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 17;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl18 ))
		{
			if(pavka[18] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 18;
				ShowLavkaDialog(playerid);
			}
			if(pavka[18] == 1)
			{
				if (PI[playerid][pmyLavka] == 18)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 18;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl19 ))
		{
			if(pavka[19] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 19;
				ShowLavkaDialog(playerid);
			}
			if(pavka[19] == 1)
			{
				if (PI[playerid][pmyLavka] == 19)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 19;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl20 ))
		{
			if(pavka[20] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 20;
				ShowLavkaDialog(playerid);
			}
			if(pavka[20] == 1)
			{
				if (PI[playerid][pmyLavka] == 20)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 20;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl21 ))
		{
			if(pavka[21] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 21;
				ShowLavkaDialog(playerid);
			}
			if(pavka[21] == 1)
			{
				if (PI[playerid][pmyLavka] == 21)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 21;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl22 ))
		{
			if(pavka[22] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 22;
				ShowLavkaDialog(playerid);
			}
			if(pavka[22] == 1)
			{
				if (PI[playerid][pmyLavka] == 22)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 22;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl23 ))
		{
			if(pavka[23] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 23;
				ShowLavkaDialog(playerid);
			}
			if(pavka[23] == 1)
			{
				if (PI[playerid][pmyLavka] == 23)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 23;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl24 ))
		{
			if(pavka[24] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 24;
				ShowLavkaDialog(playerid);
			}
			if(pavka[24] == 1)
			{
				if (PI[playerid][pmyLavka] == 24)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 24;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl25 ))
		{
			if(pavka[25] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 25;
				ShowLavkaDialog(playerid);
			}
			if(pavka[25] == 1)
			{
				if (PI[playerid][pmyLavka] == 25)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 25;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl26 ))
		{
			if(pavka[26] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 26;
				ShowLavkaDialog(playerid);
			}
			if(pavka[26] == 1)
			{
				if (PI[playerid][pmyLavka] == 26)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 26;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl27 ))
		{
			if(pavka[27] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 27;
				ShowLavkaDialog(playerid);
			}
			if(pavka[27] == 1)
			{
				if (PI[playerid][pmyLavka] == 27)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 27;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl28 ))
		{
			if(pavka[28] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 28;
				ShowLavkaDialog(playerid);
			}
			if(pavka[28] == 1)
			{
				if (PI[playerid][pmyLavka] == 28)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 28;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl29 ))
		{
			if(pavka[29] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 29;
				ShowLavkaDialog(playerid);
			}
			if(pavka[29] == 1)
			{
				if (PI[playerid][pmyLavka] == 29)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 29;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl30 ))
		{
			if(pavka[30] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 30;
				ShowLavkaDialog(playerid);
			}
			if(pavka[30] == 1)
			{
				if (PI[playerid][pmyLavka] == 30)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 30;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl31 ))
		{
			if(pavka[31] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 31;
				ShowLavkaDialog(playerid);
			}
			if(pavka[31] == 1)
			{
				if (PI[playerid][pmyLavka] == 31)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 31;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl32 ))
		{
			if(pavka[32] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 32;
				ShowLavkaDialog(playerid);
			}
			if(pavka[32] == 1)
			{
				if (PI[playerid][pmyLavka] == 32)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 32;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl33 ))
		{
			if(pavka[33] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 33;
				ShowLavkaDialog(playerid);
			}
			if(pavka[33] == 1)
			{
				if (PI[playerid][pmyLavka] == 33)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 33;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl34 ))
		{
			if(pavka[34] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 34;
				ShowLavkaDialog(playerid);
			}
			if(pavka[34] == 1)
			{
				if (PI[playerid][pmyLavka] == 34)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 34;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl35 ))
		{
			if(pavka[35] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 35;
				ShowLavkaDialog(playerid);
			}
			if(pavka[35] == 1)
			{
				if (PI[playerid][pmyLavka] == 35)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 35;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl36 ))
		{
			if(pavka[36] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 36;
				ShowLavkaDialog(playerid);
			}
			if(pavka[36] == 1)
			{
				if (PI[playerid][pmyLavka] == 36)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 36;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl37 ))
		{
			if(pavka[37] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 37;
				ShowLavkaDialog(playerid);
			}
			if(pavka[37] == 1)
			{
				if (PI[playerid][pmyLavka] == 37)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 37;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl38 ))
		{
			if(pavka[38] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 38;
				ShowLavkaDialog(playerid);
			}
			if(pavka[38] == 1)
			{
				if (PI[playerid][pmyLavka] == 38)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 38;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl39 ))
		{
			if(pavka[39] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 39;
				ShowLavkaDialog(playerid);
			}
			if(pavka[39] == 1)
			{
				if (PI[playerid][pmyLavka] == 39)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 39;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl40 ))
		{
			if(pavka[40] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 40;
				ShowLavkaDialog(playerid);
			}
			if(pavka[40] == 1)
			{
				if (PI[playerid][pmyLavka] == 40)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 40;
					ShowLavkaDialogItem(playerid);
				}
			}

 

 

Share this post


Link to post
Share on other sites

Ты не весь код скопировал?

Спойлер

 


	if(PRESSED(KEY_WALK))
	{
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl1 ))
		{
			if(pavka[1] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 1;
				ShowLavkaDialog(playerid);
			}
			if(pavka[1] == 1)
			{
				if (PI[playerid][pmyLavka] == 1)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 1;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl2 ))
		{
			if(pavka[2] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 2;
				ShowLavkaDialog(playerid);
			}
			if(pavka[2] == 1)
			{
				if (PI[playerid][pmyLavka] == 2)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 2;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl3 ))
		{
			if(pavka[3] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 3;
				ShowLavkaDialog(playerid);
			}
			if(pavka[3] == 1)
			{
				if (PI[playerid][pmyLavka] == 3)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 3;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl4 ))
		{
			if(pavka[4] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 4;
				ShowLavkaDialog(playerid);
			}
			if(pavka[4] == 1)
			{
				if (PI[playerid][pmyLavka] == 4)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 4;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl5 ))
		{
			if(pavka[5] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 5;
				ShowLavkaDialog(playerid);
			}
			if(pavka[5] == 1)
			{
				if (PI[playerid][pmyLavka] == 5)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 5;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl6 ))
		{
			if(pavka[6] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 6;
				ShowLavkaDialog(playerid);
			}
			if(pavka[6] == 1)
			{
				if (PI[playerid][pmyLavka] == 6)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 6;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl7 ))
		{
			if(pavka[7] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 7;
				ShowLavkaDialog(playerid);
			}
			if(pavka[7] == 1)
			{
				if (PI[playerid][pmyLavka] == 7)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 7;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl8 ))
		{
			if(pavka[8] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 8;
				ShowLavkaDialog(playerid);
			}
			if(pavka[8] == 1)
			{
				if (PI[playerid][pmyLavka] == 8)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 8;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl9 ))
		{
			if(pavka[9] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 9;
				ShowLavkaDialog(playerid);
			}
			if(pavka[9] == 1)
			{
				if (PI[playerid][pmyLavka] == 9)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 9;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl10 ))
		{
			if(pavka[10] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 10;
				ShowLavkaDialog(playerid);
			}
			if(pavka[10] == 1)
			{
				if (PI[playerid][pmyLavka] == 10)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 10;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl11 ))
		{
			if(pavka[11] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 11;
				ShowLavkaDialog(playerid);
			}
			if(pavka[11] == 1)
			{
				if (PI[playerid][pmyLavka] == 11)
				{
					ShowLavkaDialogItem(playerid);
				}
				else
				{
				    PI[playerid][pItemLavka] = 11;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl12 ))
		{
			if(pavka[12] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 12;
				ShowLavkaDialog(playerid);
			}
			if(pavka[12] == 1)
			{
				if (PI[playerid][pmyLavka] == 12)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 12;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl13 ))
		{
			if(pavka[13] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 13;
				ShowLavkaDialog(playerid);
			}
			if(pavka[13] == 1)
			{
				if (PI[playerid][pmyLavka] == 13)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 13;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl14 ))
		{
			if(pavka[14] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 14;
				ShowLavkaDialog(playerid);
			}
			if(pavka[14] == 1)
			{
				if (PI[playerid][pmyLavka] == 14)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 14;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl15 ))
		{
			if(pavka[15] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 15;
				ShowLavkaDialog(playerid);
			}
			if(pavka[15] == 1)
			{
				if (PI[playerid][pmyLavka] == 15)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 15;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl16 ))
		{
			if(pavka[16] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 16;
				ShowLavkaDialog(playerid);
			}
			if(pavka[16] == 1)
			{
				if (PI[playerid][pmyLavka] == 16)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 16;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl17 ))
		{
			if(pavka[17] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 17;
				ShowLavkaDialog(playerid);
			}
			if(pavka[17] == 1)
			{
				if (PI[playerid][pmyLavka] == 17)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 17;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl18 ))
		{
			if(pavka[18] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 18;
				ShowLavkaDialog(playerid);
			}
			if(pavka[18] == 1)
			{
				if (PI[playerid][pmyLavka] == 18)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 18;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl19 ))
		{
			if(pavka[19] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 19;
				ShowLavkaDialog(playerid);
			}
			if(pavka[19] == 1)
			{
				if (PI[playerid][pmyLavka] == 19)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 19;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl20 ))
		{
			if(pavka[20] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 20;
				ShowLavkaDialog(playerid);
			}
			if(pavka[20] == 1)
			{
				if (PI[playerid][pmyLavka] == 20)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 20;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl21 ))
		{
			if(pavka[21] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 21;
				ShowLavkaDialog(playerid);
			}
			if(pavka[21] == 1)
			{
				if (PI[playerid][pmyLavka] == 21)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 21;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl22 ))
		{
			if(pavka[22] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 22;
				ShowLavkaDialog(playerid);
			}
			if(pavka[22] == 1)
			{
				if (PI[playerid][pmyLavka] == 22)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 22;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl23 ))
		{
			if(pavka[23] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 23;
				ShowLavkaDialog(playerid);
			}
			if(pavka[23] == 1)
			{
				if (PI[playerid][pmyLavka] == 23)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 23;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl24 ))
		{
			if(pavka[24] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 24;
				ShowLavkaDialog(playerid);
			}
			if(pavka[24] == 1)
			{
				if (PI[playerid][pmyLavka] == 24)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 24;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl25 ))
		{
			if(pavka[25] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 25;
				ShowLavkaDialog(playerid);
			}
			if(pavka[25] == 1)
			{
				if (PI[playerid][pmyLavka] == 25)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 25;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl26 ))
		{
			if(pavka[26] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 26;
				ShowLavkaDialog(playerid);
			}
			if(pavka[26] == 1)
			{
				if (PI[playerid][pmyLavka] == 26)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 26;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl27 ))
		{
			if(pavka[27] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 27;
				ShowLavkaDialog(playerid);
			}
			if(pavka[27] == 1)
			{
				if (PI[playerid][pmyLavka] == 27)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 27;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl28 ))
		{
			if(pavka[28] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 28;
				ShowLavkaDialog(playerid);
			}
			if(pavka[28] == 1)
			{
				if (PI[playerid][pmyLavka] == 28)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 28;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl29 ))
		{
			if(pavka[29] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 29;
				ShowLavkaDialog(playerid);
			}
			if(pavka[29] == 1)
			{
				if (PI[playerid][pmyLavka] == 29)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 29;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl30 ))
		{
			if(pavka[30] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 30;
				ShowLavkaDialog(playerid);
			}
			if(pavka[30] == 1)
			{
				if (PI[playerid][pmyLavka] == 30)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 30;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl31 ))
		{
			if(pavka[31] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 31;
				ShowLavkaDialog(playerid);
			}
			if(pavka[31] == 1)
			{
				if (PI[playerid][pmyLavka] == 31)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 31;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl32 ))
		{
			if(pavka[32] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 32;
				ShowLavkaDialog(playerid);
			}
			if(pavka[32] == 1)
			{
				if (PI[playerid][pmyLavka] == 32)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 32;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl33 ))
		{
			if(pavka[33] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 33;
				ShowLavkaDialog(playerid);
			}
			if(pavka[33] == 1)
			{
				if (PI[playerid][pmyLavka] == 33)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 33;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl34 ))
		{
			if(pavka[34] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 34;
				ShowLavkaDialog(playerid);
			}
			if(pavka[34] == 1)
			{
				if (PI[playerid][pmyLavka] == 34)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 34;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl35 ))
		{
			if(pavka[35] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 35;
				ShowLavkaDialog(playerid);
			}
			if(pavka[35] == 1)
			{
				if (PI[playerid][pmyLavka] == 35)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 35;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl36 ))
		{
			if(pavka[36] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 36;
				ShowLavkaDialog(playerid);
			}
			if(pavka[36] == 1)
			{
				if (PI[playerid][pmyLavka] == 36)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 36;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl37 ))
		{
			if(pavka[37] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 37;
				ShowLavkaDialog(playerid);
			}
			if(pavka[37] == 1)
			{
				if (PI[playerid][pmyLavka] == 37)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 37;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl38 ))
		{
			if(pavka[38] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 38;
				ShowLavkaDialog(playerid);
			}
			if(pavka[38] == 1)
			{
				if (PI[playerid][pmyLavka] == 38)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 38;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl39 ))
		{
			if(pavka[39] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 39;
				ShowLavkaDialog(playerid);
			}
			if(pavka[39] == 1)
			{
				if (PI[playerid][pmyLavka] == 39)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 39;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
		else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl40 ))
		{
			if(pavka[40] == 0 && PI[playerid][pmyLavka] == 0)
			{
				PI[playerid][pLavka] = 40;
				ShowLavkaDialog(playerid);
			}
			if(pavka[40] == 1)
			{
				if (PI[playerid][pmyLavka] == 40)
				{
					ShowLavkaDialogAdd(playerid);
				}
				else
				{
					PI[playerid][pItemLavka] = 40;
					ShowLavkaDialogItem(playerid);
				}
			}
		}
	}

Замени свой на этот

Share this post


Link to post
Share on other sites
7 часов назад, SCRIPTMAN сказал:

Замени свой на этот

E:\Users\Vadim\Desktop\500\gamemodes\vad.pwn(41196) : error 029: invalid expression, assumed zero
E:\Users\Vadim\Desktop\500\gamemodes\vad.pwn(41196) : warning 215: expression has no effect
E:\Users\Vadim\Desktop\500\gamemodes\vad.pwn(41196) : error 001: expected token: ";", but found "if"
Pawn compiler 3.10.7              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
строка else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl1 ))

Edited by odosenok
Причина: убрал часть цитаты.

Share this post


Link to post
Share on other sites
7 часов назад, SCRIPTMAN сказал:

Не весь код код скопировал?

все норм просто в начале 

else if(IsPlayerInRangeOfPoint(playerid, 1.0, pl1 )) были ошибки , я сделал вначале вот так 
if(IsPlayerInRangeOfPoint(playerid, 1.0, pl1 )) сейчас протестирую на сервере
7 часов назад, SCRIPTMAN сказал:

Замени свой на этот

не работает блин в чем еще может быть причина? 

Edited by odosenok
Причина: убрал часть цитаты.

Share this post


Link to post
Share on other sites

@Drummer1993 а ты pl вставил? Это координаты. Дай код, где они у тебя

Share this post


Link to post
Share on other sites
1 час назад, SCRIPTMAN сказал:

@Drummer1993 а ты pl вставил? Это координаты. Дай код, где они у тебя

Спойлер

 


#define pl1                 1110.6871,-1433.6788,15.7969
#define pl2                 1110.7755,-1438.1166,15.7969
#define pl3                 1110.7479,-1442.7822,15.7969
#define pl4                 1110.7581,-1449.5863,15.7969
#define pl5 				1110.7659,-1456.2471,15.7969
#define pl6 				1111.1409,-1460.3457,15.7969
#define pl7 				1111.0654,-1464.6130,15.7969
#define pl8 				1109.2700,-1473.4427,15.7969
#define pl9 				1107.6213,-1477.7317,15.7969
#define pl10 				1109.0746,-1506.3014,15.7969
#define pl11 				1118.7814,-1513.4781,15.7969
#define pl12 				1123.0959,-1514.7286,15.7969
#define pl13 				1132.9354,-1515.1434,15.7969
#define pl14 				1137.4443,-1513.4227,15.7969
#define pl15 				1146.9904,-1507.4929,15.7969
#define pl16 				1149.9197,-1478.8477,15.7969
#define pl17 				1147.9353,-1474.2538,15.7969
#define pl18 				1146.2300,-1466.0222,15.7969
#define pl19 				1146.2316,-1461.2733,15.7969
#define pl20 				1146.2882,-1456.7292,15.7969
#define pl21 				1146.4071,-1443.0867,15.7969
#define pl22 				1146.4598,-1438.6909,15.7969
#define pl23 				1146.3535,-1433.9849,15.7969
#define pl24 				1132.5663,-1438.1964,15.7969
#define pl25 				1132.4624,-1442.9615,15.7969
#define pl26 				1132.4055,-1447.3654,15.7969
#define pl27 				1132.4354,-1451.8623,15.7969
#define pl28 				1132.5240,-1456.2272,15.7969
#define pl29 				1132.3529,-1461.0205,15.7969
#define pl30 				1125.2633,-1461.0713,15.7969
#define pl31 				1125.3037,-1456.3646,15.7969
#define pl32 				1125.3778,-1451.9352,15.7969
#define pl33 				1125.1851,-1447.3588,15.7969
#define pl34 				1125.5183,-1442.7278,15.7969
#define pl35 				1125.2375,-1438.4025,15.7969
#define pl36 				1116.1820,-1475.5432,15.7969
#define pl37 				1116.2982,-1484.6189,15.7969
#define pl38 				1116.5433,-1489.2039,15.7969
#define pl39 				1116.5088,-1493.6077,15.8003
#define pl40 				1116.2222,-1503.0126,15.8003

да pl все вставил 

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

Share this post


Link to post
Share on other sites

диалоги добавлены?

Share this post


Link to post
Share on other sites
В 06.12.2019 в 23:45, SCRIPTMAN сказал:

диалоги добавлены?

Спойлер

 }
   		case 1488:
		{
		    if(!response) return 1;
		    if(!strlen(inputtext)) return ShowLavkaDialog(playerid);
			new numberlavki = PI[playerid][pLavka];
            SetDynamicObjectMaterialText(palatki[numberlavki], 0, inputtext, 130, "Arial", 55, 1, 0xFFFFFFFF, 0, 1);
			pavka[numberlavki] = 1;
			PI[playerid][pmyLavka] = numberlavki;
            new mes[128];
			format(mes,sizeof(mes),"Вы назвали {4682B4}%d"W" лавку \"{4682B4}%s"W"\"",PI[playerid][pLavka],inputtext);
			SendClientMessage(playerid, -1, mes);
        }
		case 1999:
		{
		    if(response)
		    {
		        new stroka[128];
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				if(time>PI[playerid][pDrugs])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать наркотиков больше , чем у Вас имеется!");
				PI[playerid][pDrugs] = time;
				PI[playerid][pDrugs] -= time;
				new numberlavki;
    			numberlavki = PI[playerid][pmyLavka];
    			LavkaDrugs[numberlavki] = time;
				format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите цену за 1 гр наркотиков.\n\n");
 				return ShowPlayerDialog(playerid,2000,1,"",stroka,"Принять","Отмена");
				////////
		    }
		}
		case 2000:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				//if(time>PI[playerid][pDrugs])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать наркотиков больше , чем у Вас ииеется!");
				new numberlavki;
    			numberlavki = PI[playerid][pmyLavka];
    			LavkaDrugsSell[numberlavki] = time;
				SendClientMessage(playerid,COLOR_GREEN,"[Успешно] {FFFFFF}Вы установили товар!");
				////////
		    }
		}

		case 2001:
		{
		    if(response)
		    {
		        new stroka[128];
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				if(time>PI[playerid][pMats])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать материалов больше , чем у Вас ииеется!");
				PI[playerid][pMats] = time;
				PI[playerid][pMats] -= time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaMats[numberlavki] = time;
				format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите цену за 1 материал.\n\n");
 				return ShowPlayerDialog(playerid,2002,1,"",stroka,"Принять","Отмена");
				////////
		    }
		}
		case 2002:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				//if(time>PI[playerid][pDrugs])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать наркотиков больше , чем у Вас ииеется!");
				PI[playerid][pMatsSell] = time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaMatsSell[numberlavki] = time;
				SendClientMessage(playerid,COLOR_GREEN,"[Успешно] {FFFFFF}Вы установили товар!");
				////////
		    }
		}

		case 2003:
		{
		    if(response)
		    {
		        new stroka[128];
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				if(time>PI[playerid][pCheeps])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать чипсов больше , чем у Вас ииеется!");
				PI[playerid][pCheeps] = time;
				PI[playerid][pCheeps] -= time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaCheeps[numberlavki] = time;
				format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите цену за 1 чипсы.\n\n");
 				return ShowPlayerDialog(playerid,2004,1,"",stroka,"Принять","Отмена");
				////////
		    }
		}
		case 2004:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				PI[playerid][pCheepsSell] = time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaCheepsSell[numberlavki] = time;
				SendClientMessage(playerid,COLOR_GREEN,"[Успешно] {FFFFFF}Вы установили товар!");
				////////
		    }
		}


		case 2005:
		{
		    if(response)
		    {
		        new stroka[128];
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				if(time>PI[playerid][pSprunk])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать спранков больше , чем у Вас ииеется!");
				PI[playerid][pSprunk] = time;
				PI[playerid][pSprunk] -= time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaSprunk[numberlavki] = time;
				format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите цену за 1 спранк.\n\n");
 				return ShowPlayerDialog(playerid,2006,1,"",stroka,"Принять","Отмена");
				////////
		    }
		}
		case 2006:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				PI[playerid][pSprunkSell] = time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaSprunkSell[numberlavki] = time;
				SendClientMessage(playerid,COLOR_GREEN,"[Успешно] {FFFFFF}Вы установили товар!");
				////////
		    }
		}

		case 2007:
		{
		    if(response)
		    {
		        new stroka[128];
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				if(time>PI[playerid][pBeer])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать пива больше , чем у Вас ииеется!");
				PI[playerid][pBeer] = time;
				PI[playerid][pBeer] -= time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaBeer[numberlavki] = time;
				format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите цену за 1 пиво.\n\n");
 				return ShowPlayerDialog(playerid,2008,1,"",stroka,"Принять","Отмена");
				////////
		    }
		}
		case 2008:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				PI[playerid][pBeerSell] = time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaBeerSell[numberlavki] = time;
				SendClientMessage(playerid,COLOR_GREEN,"[Успешно] {FFFFFF}Вы установили товар!");
				////////
		    }
		}

		case 2009:
		{
		    if(response)
		    {
		        new stroka[128];
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				if(time>PI[playerid][pSpawned])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете продать подарков больше , чем у Вас ииеется!");
				PI[playerid][pSpawned] = time;
				PI[playerid][pSpawned] -= time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaGifts[numberlavki] = time;
				format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите цену за 1 подарок.\n\n");
 				return ShowPlayerDialog(playerid,2010,1,"",stroka,"Принять","Отмена");
				////////
		    }
		}
		case 2010:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
				PI[playerid][pSpawnedSell] = time;
				new numberlavki;
				numberlavki = PI[playerid][pmyLavka];
				LavkaGiftsSell[numberlavki] = time;
				SendClientMessage(playerid,COLOR_GREEN,"[Успешно] {FFFFFF}Вы установили товар!");
				////////
		    }
		}
		case 5586:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
		        new numberlavki = PI[playerid][pItemLavka];

				if(time*LavkaDrugsSell[numberlavki]>PI[playerid][pCash])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете купить столько наркотиков , у Вас не хватает денег!");
				if(time>LavkaDrugs[numberlavki]) return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}В лавке столько нет наркотиков!");
                PI[playerid][pDrugs] += time;
                LavkaDrugs[numberlavki] -= time;
                GiveMoney(playerid,-time*LavkaDrugsSell[numberlavki]);
				LavkaMoney[numberlavki] += time*LavkaDrugsSell[numberlavki];
				new stroka[128];
				format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы купили %d наркотиков за %d$",LavkaDrugs[numberlavki],time*LavkaDrugsSell[numberlavki]);
				SendClientMessage(playerid,COLOR_GREEN,stroka);
		    }
		}
		case 5588:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
		        new numberlavki = PI[playerid][pItemLavka];

				if(time*LavkaMatsSell[numberlavki]>PI[playerid][pCash])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете купить столько материаллов , у Вас не хватает денег!");
				if(time>LavkaMats[numberlavki]) return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}В лавке столько нет материаллов!");
                PI[playerid][pMats] += time;
                LavkaMats[numberlavki] -= time;
                GiveMoney(playerid,-time*LavkaMatsSell[numberlavki]);
				LavkaMoney[numberlavki] += time*LavkaMatsSell[numberlavki];
				new stroka[128];
				format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы купили %d материаллов за %d$",LavkaMats[numberlavki],time*LavkaMatsSell[numberlavki]);
				SendClientMessage(playerid,COLOR_GREEN,stroka);
		    }
		}

		case 5590:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
		        new numberlavki = PI[playerid][pItemLavka];

				if(time*LavkaCheepsSell[numberlavki]>PI[playerid][pCash])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете купить столько чипсов , у Вас не хватает денег!");
				if(time>LavkaCheeps[numberlavki]) return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}В лавке столько нет чипсов!");
                PI[playerid][pCheeps] += time;
                LavkaCheeps[numberlavki] -= time;
                GiveMoney(playerid,-time*LavkaCheepsSell[numberlavki]);
				LavkaMoney[numberlavki] += time*LavkaCheepsSell[numberlavki];
				new stroka[128];
				format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы купили %d чипсов за %d$",LavkaCheeps[numberlavki],time*LavkaCheepsSell[numberlavki]);
				SendClientMessage(playerid,COLOR_GREEN,stroka);
		    }
		}

		case 5592:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
		        new numberlavki = PI[playerid][pItemLavka];

				if(time*LavkaSprunkSell[numberlavki]>PI[playerid][pCash])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете купить столько спранков , у Вас не хватает денег!");
				if(time>LavkaSprunk[numberlavki]) return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}В лавке столько нет спранков!");
                PI[playerid][pSprunk] += time;
                LavkaSprunk[numberlavki] -= time;
                GiveMoney(playerid,-time*LavkaSprunkSell[numberlavki]);
				LavkaMoney[numberlavki] += time*LavkaSprunkSell[numberlavki];
				new stroka[128];
				format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы купили %d спранков за %d$",LavkaSprunk[numberlavki],time*LavkaSprunkSell[numberlavki]);
				SendClientMessage(playerid,COLOR_GREEN,stroka);
		    }
		}

		case 5594:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
		        new numberlavki = PI[playerid][pItemLavka];

				if(time*LavkaBeerSell[numberlavki]>PI[playerid][pCash])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете купить столько пива , у Вас не хватает денег!");
				if(time>LavkaBeer[numberlavki]) return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}В лавке столько нет пива!");
                PI[playerid][pBeer] += time;
                LavkaBeer[numberlavki] -= time;
                GiveMoney(playerid,-time*LavkaBeerSell[numberlavki]);
				LavkaMoney[numberlavki] += time*LavkaBeerSell[numberlavki];
				new stroka[128];
				format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы купили %d пива за %d$",LavkaBeer[numberlavki],time*LavkaBeerSell[numberlavki]);
				SendClientMessage(playerid,COLOR_GREEN,stroka);
		    }
		}

		case 5596:
		{
		    if(response)
		    {
		        new time = strval(inputtextsave);
		        if(time<1)return 0;
		        new numberlavki = PI[playerid][pItemLavka];
				if(time*LavkaGiftsSell[numberlavki]>PI[playerid][pCash])return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}Вы не можете купить столько подарков , у Вас не хватает денег!");
				if(time>LavkaGifts[numberlavki]) return SendClientMessage(playerid,COLOR_GREEN,"[Ошибка] {FFFFFF}В лавке столько нет подарков!");
                PI[playerid][pSpawned] += time;
                LavkaGifts[numberlavki] -= time;
                GiveMoney(playerid,-time*LavkaGiftsSell[numberlavki]);
				LavkaMoney[numberlavki] += time*LavkaGiftsSell[numberlavki];
				new stroka[128];
				format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы купили %d пидарков за %d$",LavkaGifts[numberlavki],time*LavkaGiftsSell[numberlavki]);
				SendClientMessage(playerid,COLOR_GREEN,stroka);
			}
  		}
	case 1499:
		{
            new stroka[128];
            if(response)
			{
				switch(listitem)
				{
				case 0://Наркотики
					{
						if(PI[playerid][pDrugs] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}У вас недостаточно наркотиков!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во наркотиков которое хотите продать.\n\n");
		    			return ShowPlayerDialog(playerid,1999,1,"",stroka,"Принять","Отмена");
					}
				case 1://Материалы
				    {
				        if(PI[playerid][pMats] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}У вас недостаточно материаллов!","Принять","");
				        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во материалов которое хотите продать.\n\n");
		    			return ShowPlayerDialog(playerid,2001,1,"",stroka,"Принять","Отмена");
				    }
				case 2://Чипсы
				    {
                        if(PI[playerid][pCheeps] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}У вас недостаточно чипсов!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во чипсов которое хотите продать.\n\n");
		    			return ShowPlayerDialog(playerid,2003,1,"",stroka,"Принять","Отмена");
				    }
				case 3://Спранк
				    {
                        if(PI[playerid][pSprunk] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}У вас недостаточно спранков!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во спранков которое хотите продать.\n\n");
		    			return ShowPlayerDialog(playerid,2005,1,"",stroka,"Принять","Отмена");
				    }
				case 4://Пиво
				    {
                        if(PI[playerid][pBeer] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}У вас недостаточно пиво!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во пива которое хотите продать.\n\n");
		    			return ShowPlayerDialog(playerid,2007,1,"",stroka,"Принять","Отмена");
				    }
				case 5://Подарки
				    {
                        if(PI[playerid][pSpawned] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}У вас недостаточно подарков!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во подарков которое хотите продать.\n\n");
		    			return ShowPlayerDialog(playerid,2009,1,"",stroka,"Принять","Отмена");
				    }
				case 6:
					{
					    new numberlavki;
						numberlavki = PI[playerid][pmyLavka];
						GiveMoney(playerid,LavkaMoney[numberlavki]);
						format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы получили %d$",LavkaMoney[numberlavki]);
						SendClientMessage(playerid,COLOR_GREEN,stroka);
						LavkaMoney[numberlavki] = 0;
					}
				case 7:
					{
					    new numberlavki;
						numberlavki = PI[playerid][pmyLavka];

						PI[playerid][pDrugs] += LavkaDrugs[numberlavki];
						PI[playerid][pMats] += LavkaMats[numberlavki];
						PI[playerid][pCheeps] += LavkaCheeps[numberlavki];
						PI[playerid][pSprunk] += LavkaSprunk[numberlavki];
						PI[playerid][pBeer] += LavkaBeer[numberlavki];
						PI[playerid][pSpawned] += LavkaGifts[numberlavki];

						LavkaDrugs[numberlavki] = 0;
						LavkaMats[numberlavki] = 0;
						LavkaCheeps[numberlavki] = 0;
						LavkaSprunk[numberlavki] = 0;
						LavkaBeer[numberlavki] = 0;
						LavkaGifts[numberlavki] = 0;

						format(stroka,sizeof(stroka),"[Информация] {FFFFFF}Вы забрали все предметы с лавочки");
						SendClientMessage(playerid,COLOR_GREEN,stroka);
					}
				}
			}
		}
	case 5555:
		{
            new stroka[128];
            if(response)
			{
				switch(listitem)
				{
				case 0://Наркотики
					{
					    new numberlavki;
						numberlavki = PI[playerid][pItemLavka];
						if(LavkaDrugs[numberlavki] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}В лавке не осталось наркотиков!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во наркотиков которое хотите купить. Цена за 1 гр: %d $.\n\n",LavkaDrugsSell[numberlavki]);
		    			return ShowPlayerDialog(playerid,5586,1,"",stroka,"Принять","Отмена");
					}
				case 1://Материалы
				    {
						new numberlavki;
						numberlavki = PI[playerid][pItemLavka];
						if(LavkaMats[numberlavki] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}В лавке не осталось материаллов!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во материаллов которое хотите купить. Цена за 1 : %d $.\n\n",LavkaMatsSell[numberlavki]);
		    			return ShowPlayerDialog(playerid,5588,1,"",stroka,"Принять","Отмена");

				    }
				case 2://Чипсы
				    {
		    			new numberlavki;
						numberlavki = PI[playerid][pItemLavka];
						if(LavkaCheeps[numberlavki] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}В лавке не осталось чипсов!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во чипсов которое хотите купить. Цена за 1 : %d $.\n\n",LavkaCheepsSell[numberlavki]);
		    			return ShowPlayerDialog(playerid,5590,1,"",stroka,"Принять","Отмена");
				    }
				case 3://Спранк
				    {
                        new numberlavki;
						numberlavki = PI[playerid][pItemLavka];
						if(LavkaSprunk[numberlavki] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}В лавке не осталось спранков!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во спранков которое хотите купить. Цена за 1 : %d $.\n\n",LavkaSprunkSell[numberlavki]);
		    			return ShowPlayerDialog(playerid,5592,1,"",stroka,"Принять","Отмена");
				    }
				case 4://Пиво
				    {
                        new numberlavki;
						numberlavki = PI[playerid][pItemLavka];
						if(LavkaBeer[numberlavki] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}В лавке не осталось пива!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во пива которое хотите купить. Цена за 1 : %d $.\n\n",LavkaBeerSell[numberlavki]);
		    			return ShowPlayerDialog(playerid,5594,1,"",stroka,"Принять","Отмена");
				    }
				case 5://Подарки
				    {
                        new numberlavki;
						numberlavki = PI[playerid][pItemLavka];
						if(LavkaGifts[numberlavki] == 0) ShowPlayerDialog(playerid,0,0,"Информация!","{3D9829}В лавке не осталось подарков!","Принять","");
                        format(stroka,sizeof(stroka),"\n\n{FFFFFF}Введите кол-во подарков которое хотите купить. Цена за 1 : %d $.\n\n",LavkaGiftsSell[numberlavki]);
		    			return ShowPlayerDialog(playerid,5596,1,"",stroka,"Принять","Отмена");
				    }
				}
			}
//*************************************************это в конце мода у меня
}
ShowLavkaDialog(playerid)
{
	new str[166],sctring[1450];
	format(str,sizeof(str),"{ffffff}Введите название вашей лавки.\n");
	strcat(sctring,str);
	format(str,sizeof(str),"{ffffff}Используйте до {DF4F4F}20{ffffff} символов.");
	strcat(sctring,str);
	return ShowPlayerDialog(playerid,1488,1,"",sctring,"Принять","Отказаться");
}
ShowLavkaDialogAdd(playerid)
{
    new numberlavki = PI[playerid][pmyLavka];
    new cfgstring[1000];
	format(cfgstring,sizeof(cfgstring),"\
	{AFAFAF}Наркотики\t| %d\t| %d\n\
	{AFAFAF}Материалы\t| %d\t| %d\n\
	{AFAFAF}Чипсы\t| %d\t| %d\n\
	{AFAFAF}Спранк\t| %d\t| %d\n\
	{AFAFAF}Пиво\t| %d\t| %d\n\
	{AFAFAF}Подарки\t| %d\t| %d\n\
	{AFAFAF}Касса лавочки\t| {DF4F4F}%d$\n\
	{E91BE9}Забрать все предметы",PI[playerid][pDrugs],LavkaDrugs[numberlavki],PI[playerid][pMats],LavkaMats[numberlavki],PI[playerid][pCheeps],LavkaCheeps[numberlavki],PI[playerid][pSprunk],LavkaSprunk[numberlavki],PI[playerid][pBeer],LavkaBeer[numberlavki],PI[playerid][pSpawned],LavkaGifts[numberlavki],LavkaMoney[numberlavki]);
	return ShowPlayerDialog(playerid,1499,2,"Название | Кол-во | На продаже",cfgstring,"Выбор","Отмена");
}
ShowLavkaDialogItem(playerid)
{
	new numberlavki = PI[playerid][pItemLavka];
	new cfgstring[1000];
	format(cfgstring,sizeof(cfgstring),"\
	{AFAFAF}Наркотики\t| %d\t| %d\n\
	{AFAFAF}Материалы\t| %d\t| %d\n\
	{AFAFAF}Чипсы\t| %d\t| %d\n\
	{AFAFAF}Спранк\t| %d\t| %d\n\
	{AFAFAF}Пиво\t| %d\t| %d\n\
	{AFAFAF}Подарки\t| %d\t| %d",LavkaDrugs[numberlavki],LavkaDrugsSell[numberlavki],LavkaMats[numberlavki],LavkaMatsSell[numberlavki],LavkaCheeps[numberlavki],LavkaCheepsSell[numberlavki],LavkaSprunk[numberlavki],LavkaSprunkSell[numberlavki],LavkaBeer[numberlavki],LavkaBeerSell[numberlavki],LavkaGifts[numberlavki],LavkaGiftsSell[numberlavki]);
	return ShowPlayerDialog(playerid,5555,2,"Название | Кол-во | Цена",cfgstring,"Выбор","Отмена");

 

Систему я вырезал из арп полностью, только я еще думаю что может переименовать return ShowPlayerDialog(playerid,,,, на D(playerid потому что место "ShowPlayerDialog" у меня в моде просто "D" и место числ диалога у меня вот так 

Спойлер

#define  	DSM 			DIALOG_STYLE_MSGBOX
#define 	DSI				DIALOG_STYLE_INPUT
#define 	DSL				DIALOG_STYLE_LIST
#define 	DSP				DIALOG_STYLE_PASSWORD
#define 	DST				DIALOG_STYLE_TABLIST
#define 	DSTH			DIALOG_STYLE_TABLIST_HEADERS

 


 

 

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

Share this post


Link to post
Share on other sites

А массив для игрока добавил? pLavka

Share this post


Link to post
Share on other sites
1 час назад, SCRIPTMAN сказал:

А массив для игрока добавил? pLavka

да я же говорю что систему полностью вырезал 

Спойлер

enum pInfo
pPalatka,
    pLavka,
    pmyLavka,
    pPalatl,
    pItemLavka,
    pCheeps,
    pSprunk,
    pBeer,
    pSpawned,
    pMatsSell,
    pCheepsSell,
    pSprunkSell,
    pBeerSell,
    pSpawnedSell,


еще заметил что у в може везде PlayerToPoint , может тут что-то не так ? 
 

#define 	HOLDING(%0) 							((newkeys & (%0)) == (%0))
#define 	PRESSED(%0) 							(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define 	RELEASED(%0) 							(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))

 

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

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

Пожалуйста, выкладывайте код так, как сказано в этой теме.

Share this post


Link to post
Share on other sites

Весь код по этой системе, скопируй в отдельный pwn и скинь его мне, не забудь пометить, что и куда добавлял.

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

    • youngblaste
      By youngblaste
      Привет. Не нужно писать что команда заезженная - просто выйди с темы.
      И так, постараюсь объяснить как всё работает в этой команде
      Погнали, хлопци!:
      CMD:makeadmin(playerid, params[]){ /* Здесь начинается наша команда */ if(p_info[playerid][pAdmin] < 7) /* Идёт проверка на админку, если наш уровень администратора ниже 7 то ничего не произойдёт (можно сменить на свой уровень) */ return true; /* возвращаем 1 - или же не на ельфийском, то просто ничего не пройзойдёт и команда не продолжит работу */ new name[MAX_PLAYER_NAME], player[MAX_PLAYER_NAME], targetid, admlvl, string[250]; /* Создаем переменные для команды (targetid - кому выдавать будем админку, admlvl - это какой лвл админки будем выдавать), string - ну это стринг :D */ if(sscanf(params, "ud", targetid, admlvl)) /* Делаем проверку на правильное написание команды */ return SendClientMessage(playerid, -1, "{84cd5c}[Подсказка] {ffffff} Используйте команду: /makeadmin [id игрока] [lvl админ-прав]"); /* Если мы ввели не верно команду, то нам возвращает сообщение в чат с подсказкой как ввести команду */ GetPlayerName(playerid, name, MAX_PLAYER_NAME); /* Тут мы получаем наш ник */ GetPlayerName(targetid, player, MAX_PLAYER_NAME); /* А тут мы получаем ник игрока которому выдаем админку */ if(!IsPlayerConnected(targetid)) /* Делаем проверку на то находится ли игрок на сервере, вообще у меня в команде здесь есть проверка на Авторизован ли игрок и она вместе с проверкой на есть ли такой игрок на сервере, но увы, я убрал потому что скорее всего не у всех есть такая фича, это не очень важно но если ты хоть немного шаришь то и сам добавишь проверку */ return SendClientMessage(playerid, -1, "{c23838}[Ошибка] {ffffff} Игрок ещё не вступил в игру"); /* Возвращаем сообщение о том что игрок ещё не вступил в игру - ну вообще должно быть "Игрока с таким ID нету на сервере", но если ты решишь добавить проверку на авторизацию то это будет немного лучше */ if(admlvl < 0 || admlvl > 6) /* Делаем проверку на какой лвл мы хотим поставить игрока, то есть мы не можем выдать лвл адм ниже 0 или выше 6, меняйте на своё если так нужно))) */ return SendClientMessage(playerid, -1, "{c23838}[Ошибка] {ffffff} Увы, нельзя выдавать меньше 0 или выше 6 уровня администратора"); /* Возвращаем сообщение о том что мы не можем выдавать меньше 0 или выше 6 лвл адм */ p_info[targetid][pAdmin] = admlvl; /* И так... p_info у вас может быть разное: PlayerInfo, pInfo, PI, PlayerInformation, p_Info, P_I и т.п., pAdmin так же может быть другим, хотя обычно такое, например: Admin, PlayerAdmin, Player_Admin, Adminka и т.п. */ format(string, sizeof(string), "{b33d3d}{A} Администратор %s[%d] назначил администратором игрока %s[%d]", name, playerid, player, targetid); /* И так, тут мы форматируем string и после отпрам в админ чат))) */ AdmChat(-1, string); /* Ниже вы увидите сток с AdmChat, крч просто отправляем в адм чат */ format(string, sizeof(string), "{ffffff}Администратор %s[%d] назначил Вас администратором %d-го уровня.", name, playerid, admlvl); /* Форматируем опять стринг и потом игроку отправим */ SendClientMessage(targetid, -1, string); /* Устал описовать команду, ну да ладно... Теперь отправляем игроку string */ return true; /* Возвращаем 1, чтобы небыло еррора))) */ } /* Здесь заканчивается наша команда */ /* vk.com/youngblaste - люbлю сkpuптuнг */ А теперь сток AdmChat, добавьте возле своих стоков ну или под командой:
      stock AdmChat(color, const text[]) /* тут не буду много объяснять */ { foreach(new i: Player) if(p_info[i][pAdmin] > 0) SendClientMessage(i, color, text); /* Обычно используют для админ чата... Ну и как всегда... p_info у вас может быть разное: PlayerInfo, pInfo, PI, PlayerInformation, p_Info, P_I и т.п., pAdmin так же может быть другим, хотя обычно такое, например: Admin, PlayerAdmin, Player_Admin, Adminka и т.п. */ } Если Вы заметили какую-то ошибку, пожалуйста отпишите. Надеюсь Вам понравился этот мини-урок, ну а точнее команда /makeadmin.
      Удачи, юные скриптеры