Y_Ini tag
#2

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.
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.
}
Reply


Messages In This Thread
Y_Ini tag - by iOxide - 01.10.2014, 11:01
Re: Y_Ini tag - by dusk - 01.10.2014, 11:32
Re: Y_Ini tag - by iOxide - 01.10.2014, 11:43
Re: Y_Ini tag - by iOxide - 02.10.2014, 18:53
Re: Y_Ini tag - by Evocator - 02.10.2014, 19:07
Re: Y_Ini tag - by iOxide - 05.10.2014, 14:22
Re: Y_Ini tag - by RoW001 - 05.10.2014, 14:36
Re: Y_Ini tag - by iOxide - 05.10.2014, 14:43
Re: Y_Ini tag - by iOxide - 05.10.2014, 19:03

Forum Jump:


Users browsing this thread: 3 Guest(s)