SA-MP Forums Archive
read out directory? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: read out directory? (/showthread.php?tid=233947)



read out directory? - hipy - 02.03.2011

Hi,

how can i let my script read out an directroy in scriptfiles, (with files like 1.ini, 2.ini etc)
and put all the file names in an array?


Re: read out directory? - Lorrden - 02.03.2011

I don't quite understand what You mean..


Re: read out directory? - hipy - 02.03.2011

what i mean is that i got a directory in scriptfile, where there are 5 files, called 1.ini, 2.ini and so on

I want to put the names of the filename in an array, how can i do that.


Re: read out directory? - Lorrden - 02.03.2011

pawn Код:
strmid(array, filename, 0, start, end);
?