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



Dialog help - yoan103 - 13.02.2010

i have a dialog /help witch opens me a list of options, and i have a question when i select a thing on the dialog how do i make it to show another dialog i know how it is done but i have another dialog about vehicles and i want it to show when i select the dialog item vehicles. (When I select vehicles, must open me another created dialog)...


Re: Dialog help - hab2ever - 13.02.2010

try it
pawno code:

#define WELCOME 2011

if(strcmp(cmdtext, "/help", true) == 0)
{
ShowPlayerDialog(playerid,WELCOME,DIALOG_STYLE_MSG BOX,"Help Menu"," Your Message's Here ","OK","Cancel");
return 1;
}

and this list
if(!strcmp(cmdtext, "/drinks", true))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Help Menu List", " Your Messages Here", "Selcet", "Cancel");
return 1;
}