Y_ini loop loading question
#5

I don't understand why to save the id inside the string... That's not even working by the way.
You have the file variable which save the variables into the path, however you must enter an id to the loading function.
pawn Код:
Save(id)
{
    new INI:File = INI_Open(TestPath(id));
//                                    ^
    INI_SetTag(File, "Testdata");
    // ..
    return 1;
}
pawn Код:
public LoadTest_data(id, name[], value[])
//                    ^
{
    new str[20];
    for(new a; a < 20; a++)
    {
        for(new b; b < 20; b++)
        {
            format(str, sizeof(str),"Test%d%d", a, b);
            INI_Float(str, gSomeVar[id][a][b]);
            //                       ^
        }
    }
    return 1;
}
Reply


Messages In This Thread
Y_ini loop loading question - by Loot - 28.11.2013, 19:39
Re: Y_ini loop loading question - by Jefff - 28.11.2013, 21:19
Re: Y_ini loop loading question - by Loot - 28.11.2013, 21:26
Re: Y_ini loop loading question - by Jefff - 28.11.2013, 22:21
Re: Y_ini loop loading question - by Loot - 28.11.2013, 22:33
Re: Y_ini loop loading question - by Jefff - 28.11.2013, 22:41
Re: Y_ini loop loading question - by Loot - 28.11.2013, 22:49

Forum Jump:


Users browsing this thread: 1 Guest(s)