I m using Dini and then use dini_get() to get string and display in dialog box but unfortunately \n is not work in it
pawn Код:
CMD:update(playerid, params[])
{
new id,file[128],str[520];
if(sscanf(params, "i", id)) return SendClientMessage(playerid, -1, "USAGE: /update [id]");
format(file,sizeof(file),"/updates/%d.ini",id);
if(fexist(file))
{
strmid(str, dini_Get(file, "data"), false, strlen(dini_Get(file, "data")), 228);
ShowPlayerDialog(playerid, DIALOG_UPDATE, DIALOG_STYLE_MSGBOX, "Update", str, "Close", "");
}
else
{
SendClientMessage(playerid, -1, "Error: Not Avilable");
}
return 1;
}