SA-MP Forums Archive
Dialog Remove - 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: Dialog Remove (/showthread.php?tid=112684)



Dialog Remove - nesty - 09.12.2009

hi, short hopefully question.
Is it possible to Remove a Dialog? (Not by pressing a button) Like the other functions like 1(=true) for disabled and 0(=false) for Enabled?
I was looking in wiki but didn't found one.
( Its important because if the Player is dead the dialog have to remove)

hope u can help.



(PS: Great idea the Dialog function)



Re: Dialog Remove - Donny_k - 09.12.2009

Add "ShowPlayerDialog( playerid, -1, 0, "", "", "", "" );" to "OnPlayerDeath".


Re: Dialog Remove - nesty - 09.12.2009

thanks and sorry I didn't tell u that I want to disable only a special dialog not every Dialog.
can u tell me that?


Re: Dialog Remove - MenaceX^ - 09.12.2009

Quote:
Originally Posted by nesty
thanks and sorry I didn't tell u that I want to disable only a special dialog not every Dialog.
can u tell me that?
His code will disable every running dialog you've got.


Re: Dialog Remove - nesty - 09.12.2009

yes i know but i need a function where specially ONE Dialog will disable, hope u know what i mean?


Re: Dialog Remove - nesty - 10.12.2009

I think of a function like this:

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSG,"Do you want a Shotgun?",s,"YES","NO", 1;
Is there any of that? 0(=false) = disabled

or has somebody an idea? please! Its important


Re: Dialog Remove - nesty - 10.12.2009

"You can't have multiple dialogs at the same time"
ok i think its like checkpoints! damn but thanks for you answer!