07.06.2013, 10:30
(
Последний раз редактировалось Facerafter; 07.06.2013 в 14:38.
)
My Y_ini is not loading the file. Im 100 % sure it saves. But it doesn't load.
Load public.
And here the OnGameModeInIt where the while needs to be loaded but it doesn't
Load public.
pawn Код:
forward load_factions(name[], value[]);
public load_factions(name[], value[])
{
INI_Int("LSPDLeader", FacInfo[1][facLeader]);
INI_Int("LSPDMembers", FacInfo[1][facMembers]);
INI_Int("Rank0", FacInfo[1][fRank0]);
INI_Int("Rank1", FacInfo[1][fRank1]);
INI_Int("Rank2", FacInfo[1][fRank2]);
INI_Int("Rank3", FacInfo[1][fRank3]);
INI_Int("Rank4", FacInfo[1][fRank4]);
INI_Int("Rank5", FacInfo[1][fRank5]);
INI_Int("Rank6", FacInfo[1][fRank6]);
INI_Int("Rank7", FacInfo[1][fRank7]);
INI_Int("Rank8", FacInfo[1][fRank8]);
INI_Int("Rank9", FacInfo[1][fRank9]);
INI_Int("Rank10", FacInfo[1][fRank10]);
INI_Int("Div1", FacInfo[1][fDiv1]);
INI_Int("Div2", FacInfo[1][fDiv2]);
INI_Int("Div3", FacInfo[1][fDiv3]);
INI_Int("Div4", FacInfo[1][fDiv4]);
return 1;
}
pawn Код:
public OnGameModeInIt()
{
INI_ParseFile("factions/lspd.INI", "load_factions", .bExtra = false);
return 1;
}