Dialog Linking - 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 Linking (
/showthread.php?tid=272513)
Dialog Linking -
kvsolga - 28.07.2011
Hi am am just wondering on how to link dialogues like this....
If I make a dialogue using "zcmd" how can I link up the "next" button with another dialogue?
Код:
CMD:acmds(playerid, params[])
{
new string[1399];
strcat(string,"My Text Here\n");
strcat(string,"My Text Here\n");
ShowPlayerDialog(playerid,18,DIALOG_STYLE_MSGBOX,"Level 1 Administrator Commands",string,"Next","Cancel");
return 1;
}
Re: Dialog Linking -
Shadoww5 - 28.07.2011
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 18)
{
if(response) { ShowPlayerDialog(...); }
}
return 1;
}
Re: Dialog Linking -
kvsolga - 28.07.2011
what do you mean what do i need to do to that text ?
Re: Dialog Linking -
Mean - 28.07.2011
wiki.sa-mp.com/wiki/OnDialogResponse
Read it PLEASE. We don't know how you want the dialog you link look like, so we can basically only tell you to read the wiki.