[Tutorial] [TUT]How to Create A INPUT Dialog
#8

Quote:
Originally Posted by tanush
Посмотреть сообщение
how i create more dialogs in one pawno
YOu can use other dialogs like :
Код:
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"AFK","You are now AFK","Thanks","Thanks");
And you have
Код:
if (strcmp("/gps", cmdtext, true, 10) == 0)
	{
	
		ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "GPS System", "PD\nHospital \nBank \nCity Hall", "Chose", "Cancel"); //this dialog will show you when you wrote this command
		return 1;
	}
then on
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
Код:
if(dialogid == 1) //this is dialog id
{
if(response)
{
new message[200];
if(listitem == 0)
{
format(message, 200, "Location set on: PD!", 0); //this is text when player select destination
SetPlayerCheckpoint(playerid, 1537.0702,-1669.6351,13.3828,7.0); 
}
else if(listitem == 1)
{
    format(message, 200, Location set on: Hospital!", 1); //this is text when player select destination
    SetPlayerCheckpoint(playerid, 1186.9574,-1322.0541,13.5586,7.0);
    }
    else if(listitem == 2)
    {
        format(message, 200, "Location set on: Bank!", 1); //this is text when player select destination
        SetPlayerCheckpoint(playerid, 1460.1549,-1023.6053,23.8331,7.0);
		}
		else if(listitem == 2)
        {
        format(message, 200, "Location set on: City Hall!", 1); //this is text when player select destination
        SetPlayerCheckpoint(playerid, 1481.2764,-1742.8722,13.5469,7.0);
		}
}
}
When You put
Код:
DIALOG_STYLE_MSGBOX
you dont need to put
Код:
OnDIalogResponse
Because that is mesage
Код:
DIALOG_STYLE_LIST
You NEED to put
Код:
OnDialogResponse
because that is list and you chose what yyou want
Код:
DIALOG_STYLE_INPUT
You NEED to put
Код:
OnDialogResponse
because you wrote in this like little box

I hope that you understand this my TuT
BTW Sorry For My Bad English xD
Reply


Messages In This Thread
[TUT]How to Create A INPUT Dialog - by IanDaCJ - 11.07.2010, 09:56
Re: [TUT]How to Create A INPUT Dialog - by hab2ever - 11.07.2010, 09:59
Re: [TUT]How to Create A INPUT Dialog - by CAR - 11.07.2010, 10:33
Re: [TUT]How to Create A INPUT Dialog - by Hiddos - 11.07.2010, 10:34
Re: [TUT]How to Create A INPUT Dialog - by tanush - 12.07.2010, 20:57
Re: [TUT]How to Create A INPUT Dialog - by Aleluja - 12.07.2010, 21:18
Re: [TUT]How to Create A INPUT Dialog - by ToPhrESH - 12.07.2010, 21:44
Re: [TUT]How to Create A INPUT Dialog - by Aleluja - 13.07.2010, 11:45
Re: [TUT]How to Create A INPUT Dialog - by tanush - 13.07.2010, 16:34
Re: [TUT]How to Create A INPUT Dialog - by felipex - 13.07.2010, 18:31
Re: [TUT]How to Create A INPUT Dialog - by felipex - 13.07.2010, 18:34
Re: [TUT]How to Create A INPUT Dialog - by IanDaCJ - 13.07.2010, 20:08
Re: [TUT]How to Create A INPUT Dialog - by tanush - 15.07.2010, 01:29
Re: [TUT]How to Create A INPUT Dialog - by Brian_Furious - 20.07.2010, 09:47
Re: [TUT]How to Create A INPUT Dialog - by Jochemd - 23.07.2010, 09:11
Re: [TUT]How to Create A INPUT Dialog - by [DK]JaloNik - 23.07.2010, 09:27
Re: [TUT]How to Create A INPUT Dialog - by Creation - 02.09.2010, 20:02
Re: [TUT]How to Create A INPUT Dialog - by Luis- - 02.09.2010, 21:44
Re: [TUT]How to Create A INPUT Dialog - by Victos_xd - 05.08.2011, 16:08
Re: [TUT]How to Create A INPUT Dialog - by Tom Kingston - 09.03.2013, 16:56
Re: [TUT]How to Create A INPUT Dialog - by Mr.Valdez - 14.03.2013, 19:25
Re: [TUT]How to Create A INPUT Dialog - by CROSS_Hunter - 03.05.2013, 02:03
Re: [TUT]How to Create A INPUT Dialog - by Pettersen - 18.05.2013, 17:39
Re: [TUT]How to Create A INPUT Dialog - by SwisherSweet - 02.06.2013, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)