Dialog, dosen't work?
#1

Hello, i made a dialog on a checkpoint, when you enter checkpoint it pops up as it should, but it does not activate the "bottom"

Код:
 			if(dialogid == 9)
	{
		if(response)
		{
			if(listitem == 0)
			{
				if(COP[playerid] == 0 && CIVIL[playerid] == 1)
				{
				  SendClientMessage(playerid,COLOUR_BLUE,"You have joined the police!");
				  COP[playerid] = 1;
				  CIVIL[playerid] = 0;
				  return 1;
				}
				else if(ROBBER[playerid] >= 1)
				{
				  SendClientMessage(playerid,COLOUR_RED,"You are on the other side of the law!");
					return 1;
				}
				else
				{
				  SendClientMessage(playerid,COLOUR_RED,"You are already a cop!");
					return 1;
				}
			}
			if(listitem == 1)
			{
				if(COP[playerid] >= 1)
				{
				  SendClientMessage(playerid,COLOUR_BLUE,"You left the police!");
				  COP[playerid] = 0;
				  CIVIL[playerid] = 1;
				  return 1;
				}
				else
				{
				  SendClientMessage(playerid,COLOUR_RED,"You can't leave, as you are not a member!");
					return 1;
				}
			}
		}
Can you see a error in it?
Reply


Messages In This Thread
Dialog, dosen't work? - by Naxix - 13.04.2010, 20:09
Re: Dialog, dosen't work? - by Naxix - 14.04.2010, 12:05
Re: Dialog, dosen't work? - by Jay_ - 14.04.2010, 12:46
Re: Dialog, dosen't work? - by Thrarod - 14.04.2010, 12:48
Re: Dialog, dosen't work? - by Naxix - 14.04.2010, 12:55
Re: Dialog, dosen't work? - by Thrarod - 14.04.2010, 12:59
Re: Dialog, dosen't work? - by Naxix - 14.04.2010, 13:02
Re: Dialog, dosen't work? - by Thrarod - 14.04.2010, 13:08
Re: Dialog, dosen't work? - by Naxix - 14.04.2010, 13:12
Re: Dialog, dosen't work? - by Thrarod - 14.04.2010, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)