How to get all file names...
#1

How to get all file names in scriptfiles folder? Is there a plugin or something for this?
Reply
#2

BUMP.
Reply
#3

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);
}
Reply
#4

Move to MySQL
Reply
#5

Okay thanks all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)