10.07.2011, 00:16
You could use the y_files plugin's ffind function.
An example of the code required to list the number of files in a directory could be:
pawn Code:
ffind(const pattern[], filename[], len, &idx);
pawn Code:
new iCount, i, szNameBuffer[MAX_PLAYER_NAME + 4];
while(ffind("Accounts/*", szNameBuffer, sizeof(szNameBuffer), i)) iCount++; // iCount would retain the number of files in your 'Accounts' directory