15.05.2011, 13:10
Hello.
Can someone give me please an example for 2 DIALOG_STYLE_INPUT dialogs (inputtext)(
Can someone give me please an example for 2 DIALOG_STYLE_INPUT dialogs (inputtext)(
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
{
switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement
{
case 0:
{
if(strlen(inputtext) > 0)
{
ShowMenuForPlayer(Driftmenu, playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Your input was too short.");
}
}
// Until here.
}
}
return 1;
}