Ini to Dialog Problem
#1

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.
Reply


Messages In This Thread
Ini to Dialog Problem - by MA_proking - 06.06.2013, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)