Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
I'm making a faction system. I made /createfaction till yet. Is there any way to save the names of factions into .ini in a folder named faction? Full explanation- Admin used /createfaction, faction got created and a new file gets created into faction folder with the name of the faction.
Posts: 107
Threads: 2
Joined: Oct 2016
Reputation:
0
All you really have to do is have the name saved within a string and then write a file with said string. Are you familiar with having .ini files created?
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
You'd do this the exact same way as you would create a player's file when they register. Same principle, different file path.
Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
But that is for a player. But this one is a global type.
Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
FFS Bump! im waiting from morning i hab to complete da script
Posts: 1,506
Threads: 13
Joined: Jun 2015
Use the same method same player files, but load them on OnGameModeInit and unload in OnGameModeExit.
Posts: 1,050
Threads: 153
Joined: Mar 2016
Reputation:
0
So I saved them as INI_WriteString but as far I know we can't load with a function like INI_String so what should I do in that case?