If making dynamic - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: If making dynamic (
/showthread.php?tid=473378)
If making dynamic -
Tagathron - 02.11.2013
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?
Re: If making dynamic -
Ada32 - 02.11.2013
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.