Another help
#5

OnDialogResponse

ShowPlayerDialog

Dialog Styles

Example:

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) 
{
        if(dialogid == 0 && response)
        {
                 SendClientMessage(playerid, 1, "You have just seen a message dialog");
                 return 1;
        }
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	new cmd[256+1];
	new idx;
	cmd = strtok(cmdtext, idx);

	if(strcmp(cmd, "/showmessage", true) == 0)
	{
  	    ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "This is a message", "This is a message box dialog", "Ok", "");
	    return 1;
	}
        return 1;
}
SA:MP Discord: Click Me!
Reply


Messages In This Thread
Another help - by DarkMythHunter - 28.04.2018, 04:18
Re: Another help - by Logic_ - 28.04.2018, 04:37
Re: Another help - by DarkMythHunter - 28.04.2018, 12:42
Re: Another help - by std - 28.04.2018, 13:36
Re: Another help - by ItsRobinson - 28.04.2018, 18:17
Re: Another help - by Sew_Sumi - 28.04.2018, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)