Jump to content

Cum face la dialog optiuni libere


Jimmi

Recommended Posts

Salut, la dialoguri cum pot face optiuni care sa nu faca nimic.dau pe el si sa se inchida dialogul

if(listitem == 0)
		    {
		        ShowPlayerDialog(playerid,DIALOG_REPORT,DIALOG_STYLE_INPUT,"{0066FF}X {FFFFFF}foloeste {0066FF}hack:","Introdu numele celui care foloeste HACK.","Select","Cancel"); return 1;
		    }

 

Link to comment
Share on other sites

La dialog ai 2 butoane, in cazul tau "Select" si "Cancel"

Primul buton, in cazul tau "select" reprezinta cand respectivul raspunde la dialog (response)

Al doilea buton, in cazul tau "Cancel" reprezinta cand respectivul nu raspunde la dialog (!response)

Dialogul se inchide la orice buton ai selecta, totul depinde doar de ce il pui sa faca daca playerul raspunde sau nu raspunde la dialog.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.