01.10.2014, 11:32
I'm not sure how will you set the files name. If it's named after a player(like name.ini) you won't be able to get the file name OnGameModeInit. One workaround is to have a file with all registerer player names(not even y_ini, but native file functions).
As for loading data under "data" tag, use INI_ParseFile.
As for loading data under "data" tag, use INI_ParseFile.
pawn Код:
INI_ParseFile(filename, "ini_%s");
// And then add a public function, assuming the tag is called "data" as in your example.
forward ini_data(name[], value[]);
public ini_data(name[], value[])
{
// load it here.
}