How to get all file names... - 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: How to get all file names... (
/showthread.php?tid=337022)
How to get all file names... -
Whizion - 24.04.2012
How to get all file names in scriptfiles folder? Is there a plugin or something for this?
Re: How to get all file names... -
Whizion - 25.04.2012
BUMP.
Re: How to get all file names... -
ReneG - 25.04.2012
No plugin has been made yet to suit your needs.
If all the files in the folder begin with the same name, but a different number or something like so
Код:
House_1.txt
House_2.txt
House_3.txt
Then you can loop still loop through them.
pawn Код:
new
szString[20],
File:Houses[6]
;
for(new i=0; i<6; i++)
{
format(szString, sizeof(szString), "House_%d.txt", i);
Houses[i] = fopen(szString, io_append);
}
Re: How to get all file names... -
ikey07 - 25.04.2012
Move to MySQL
Re: How to get all file names... -
Whizion - 25.04.2012
Okay thanks all.