YINI Loading
#3

This is what I have
Код:
public LoadLSPD_Data(name[], value[])
{
    INI_String("Chief", LSPDVar[FactionLeader],24);
   	INI_Int("Money", LSPDVar[FactionMoney]);
    INI_Int("Drugs", LSPDVar[FactionDrugs]);
    INI_Int("Weapons", LSPDVar[Factionguns]);
    INI_Int("MembersCount", LSPDVar[FactionMembers]);
    INI_Int("ArrestsCount", LSPDVar[FactionArrests]);
    INI_Int("KillsCount", LSPDVar[FactionKills]);
    INI_Int("DeathsCount", LSPDVar[FactionDeaths]);
    return 1;
}
I call that function OnGameModeInit But it's not working.It's not showing any errors but it's not Loading either.And by the way I have to use for playerid so I think I should use INI_LOAD instead of INI_ParseFile but I'm not sure how
Edit:
Nvm,I already got it.I will post my code maybe it will be useful for someone out there
Код:
INI:LSPD[](name[], value[])
{
    INI_String("Chief", LSPDVar[FactionLeader],24);
   	INI_Int("Money", LSPDVar[FactionMoney]);
    INI_Int("Drugs", LSPDVar[FactionDrugs]);
    INI_Int("Weapons", LSPDVar[Factionguns]);
    INI_Int("MembersCount", LSPDVar[FactionMembers]);
    INI_Int("ArrestsCount", LSPDVar[FactionArrests]);
    INI_Int("KillsCount", LSPDVar[FactionKills]);
    INI_Int("DeathsCount", LSPDVar[FactionDeaths]);
    return 1;
}
Under OnGameModeInit
Код:
INI_Load("Factions/LSPD.INI");
Reply


Messages In This Thread
YINI Loading - by mirou123 - 08.02.2014, 13:39
Re: YINI Loading - by Riwerry - 08.02.2014, 13:41
Re : YINI Loading - by mirou123 - 08.02.2014, 13:45

Forum Jump:


Users browsing this thread: 2 Guest(s)