SA-MP Forums Archive
Ini to Dialog Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ini to Dialog Problem (/showthread.php?tid=442226)



Ini to Dialog Problem - MA_proking - 06.06.2013

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;
}
File:
Код:
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.