02.12.2017, 19:39
it's been years since i coded but i think this will work.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOGID)
{
if(response)
{
new id = listitem,
playername[MAX_PLAYER_NAME],
string[144];
GetPlayerName(id, playername, sizeof(playername));
format(string, sizeof(string), "%s", playername);
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_MSGBOX, "Name", string, "Close", "");
}
return 1;
}
return 0;
}