06.06.2013, 14:52
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
File:
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;
}
Код:
data=[Fixed] : Double Death Bug.\n[Fixed] : Anti Lag System Added. [[ Very Less effective ]]\n[Added] : Number of register when new user register.[Added] : Improved Admin system.\n[Added] : Some new commands added for Owners.