Need Help > dini
#1

Hi guys I have make a dini funtions dini_get is getting same but on savenote() on file all data save as (line= )

pawn Код:
public SaveNotes()
{
    new file[128];
    for(new i = 1;i < MAX_DOMAINS;i++)
    {
        format(file,sizeof(file),N_File,i);
        dini_Set(file, "Line1",DInfo[i][line1]);
        dini_Set(file, "Line2",DInfo[i][line2]);
        dini_Set(file, "Line3",DInfo[i][line3]);
        dini_Set(file, "Line4",DInfo[i][line4]);
        dini_Set(file, "Line5",DInfo[i][line5]);
        }
    return 1;
}
It saying this... but IG/in console its getting right string.
Код:
Line1=
Line2=
Line3=
Line4=
Line5=
Reply
#2

Your format doesn't make sense, what are you trying to accomplish with the format function?

See the usage of format here:

https://sampwiki.blast.hk/wiki/Format
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)