If making dynamic
#1

If you would be making an dynamic faction system,for example.
And let's say there is a command to create a new faction,then set up vehicles etc..
How could i make a new file named like the argument player put in when making the faction.
For example /makefac [NAME],so the [NAME] is the name of the .ini file?
Something like:
Код:
//Some command for making the faction....
//Let's say the [NAME] argument would be stored in a string var (new stringFac[128])
new INI:File = INI_Open(stringFac); // LIke this?
And then what when i want to read from that file?
Reply
#2

Quote:
Originally Posted by Tagathron
new INI:File = INI_Open(stringFac); // LIke this?
yes.

Quote:
Originally Posted by Tagathron
And then what when i want to read from that file?
you write a function that will load the information and then pass into ini_parsefile.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)