[help] need help 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)
+--- Thread: [help] need help dialog (
/showthread.php?tid=331620)
[help] need help dialog -
BabyMan - 05.04.2012
I want the purpose of dialog HELP Can anyone explain to me how? I read manuals and I can not
Re: [help] need help dialog -
Faisal_khan - 05.04.2012
What you want to make and add in it?
Re: [help] need help dialog -
BabyMan - 05.04.2012
I want to HELP command in a dialog and help make a list of commands, TELE and laws and some
Re: [help] need help dialog -
Faisal_khan - 05.04.2012
LOL
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds.
Try looking here:
ShowPlayerDialog
Re: [help] need help dialog -
blank. - 05.04.2012
pawn Код:
ShowPlayerDialog(playerid,DIALOG_STYLE_LIST,"Commands","Command1\r\nCommand2\r\nCommand3\r\nandsoon","OK","");
Re: [help] need help dialog -
BabyMan - 05.04.2012
I know to do that I want to do as we tell I click on something in the dialog will open another dialog
Say I click on the tele then I will open another dialog with the list of all the tele
Re: [help] need help dialog -
Faisal_khan - 05.04.2012
So you must try,
OnDialogResponse
Re: [help] need help dialog -
BabyMan - 05.04.2012
Thank you
Re: [help] need help dialog -
TzAkS. - 05.04.2012
On a command
Код:
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Help", "Rules\nCommands\n", "Ok", "");
OnDialogResponse
Код:
if(dialogid == 123)
{
if(response)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED, "Rules here");
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_RED, "Commands here");
}
}
}
You can do this more simply with dialog creator,take it from my signature.