28.11.2013, 22:33
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.
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;
}