18.09.2014, 20:30
pawn Код:
if(Command("/MudarTexto")) return ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "TextDraw", "Digite abaixo o texto para a TextDraw", "Alterar", "Cancelar");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 100)
{
if(!response) return 1;
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 100, DIALOG_STYLE_INPUT, "TextDraw", "Digite abaixo o texto para a TextDraw", "Alterar", "Cancelar");
TextDrawSetString(TextDraw, inputtext);
}
return 1;
}