How to make it so you cant escape the dialog
#1

I have a dialog administrator system, Thats only on my account,
So like when i connect it asks me for admin password,
If u type incorrect and press ok it says Incorrect Password and kicks you,
But if i click Cancel or Esc Key, It takes the dialog menu off,
How to stop that, if u can
Reply
#2

Код:
			if(dialogid == dialogID)
			{
			  if(response == 1)
			  {
			    //do something here
				}
				else
				{
				  ShowPlayerDialog(playerid, dialogID, DIALOG_STYLE_INPUT, "blalala:", "blalalal", "Okay","Quit");
				}
			}
Only example.

You have to use else.
Reply
#3

Thats only if wrong password though, Becuase im using that now
Reply
#4

Quote:
Originally Posted by JoeDaDude
Thats only if wrong password though, Becuase im using that now
That's wierd cuz im using it like that and you can't use escape, to exit dialog.

You can also try

Код:
if(response == 0)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)