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
#2

Bump :b
Reply
#3

You need to explain the problem more clearly.
Reply
#4

Activate "Bottom"? What the, explain FULL problem!
Reply
#5

Well, the first itemlist is to join the police team, and the 2nd is to leave the police team.

When i enter the checkpoint the dialog shows up with the 2 tabs "Join" and "Leave" but when i click on em the dialog just closes without activate the things i have added to it.
Reply
#6

Click me for help!

It's the Holy Book of scripters
Reply
#7

Quote:
Originally Posted by Thrarod
Click me for help!

It's the Holy Book of scripters
That just give me a bunch of links to buy stuff and such??
Reply
#8

Sorry wrong link

It's the Holy Book v2!!!
Reply
#9

-.- i have readed the wiki tut on dialog, but i can't seem to find anything wrong with my dialog...
Reply
#10

Give all the code -with parts- about your dialog = Everything
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)