Problem with y_ini
#1

I have a problem with y_ini. It does not save the the data in the file.
Here are a code that i just made as a example. I've tested it and it does not save anything but it do create the file "example.ini" inside scriptfiles. If someone can see anything wrong about this please tell me!
pawn Код:
#include <a_samp>
#include <YSI\y_ini>

new Example[] = "example.INI";

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/test",cmdtext,true) == 0)
    {
        new INI:File = INI_Open(Example);
        new string1[128];
        format(string1,sizeof(string1),"blalalala",string1);
        INI_SetTag(File,"example");
        INI_WriteString(File,"a string",string1);
        INI_Close(File);
        return 1;
    }
    return 0;
}
Reply
#2

I do really need help with this!
Reply
#3

I'm not a user of yini,
But i think you must save the file.

Maybe INI_Save(File) ?
Reply
#4

there is no INI_Save, it's just open, write and close
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)