18.06.2013, 19:26
There are multiple file plugins on the forums. If you have problem with the one you tried, try another.
If your files are numbered and are in format e.g. "1.ini", than you can make a loop like this:
If your files are not numbered, than you'll have to use a plugin.
If your files are numbered and are in format e.g. "1.ini", than you can make a loop like this:
pawn Code:
for (new i = 1, filename[12]; i <= 100; i++) // replace "100" with the maximum number you have in the directory
{
format(filename, sizeof(filename), "%d.ini", i);
if (fexist(filename))
{
// file exists, do whatever you want here
}
else continue;
}

