Quote:
Originally Posted by Mencent
PHP код:
new string[100] = "Hello|n world[...]";
new output[100];
format(output, sizeof(output), "%s", ReplaceNewline(string));
SendPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "Title", output, "Ok", "");
It's wrong. You have to write it like this:
PHP код:
new string[100] = "Hello|n world[...]";
ReplaceNewLine(string);
ShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX,"Title",string,"Ok","");
|
Still do nothing

Command:
Код HTML:
CMD:showtestdialog(playerid, params[])
{
new string[100] = "Hello|n world[...]";
ReplaceNewline(string);
ShowPlayerDialog(playerid, DIALOG_CANCELJOB, DIALOG_STYLE_MSGBOX, "Title", string, "Ok", "");
return 1;
}