08.02.2014, 13:45
(
Последний раз редактировалось mirou123; 08.02.2014 в 14:26.
)
This is what I have
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
Under OnGameModeInit
Код:
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; }
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; }
Код:
INI_Load("Factions/LSPD.INI");