How to make it so you cant escape the dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make it so you cant escape the dialog (
/showthread.php?tid=122249)
How to make it so you cant escape the dialog -
JoeDaDude - 20.01.2010
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
Re: How to make it so you cant escape the dialog -
kamilbam - 20.01.2010
Код:
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.
Re: How to make it so you cant escape the dialog -
JoeDaDude - 20.01.2010
Thats only if wrong password though, Becuase im using that now
Re: How to make it so you cant escape the dialog -
kamilbam - 20.01.2010
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