Registered member?
#3

You could use the y_files plugin's ffind function.

pawn Code:
ffind(const pattern[], filename[], len, &idx);
An example of the code required to list the number of files in a directory could be:

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
Reply


Messages In This Thread
Registered member? - by Ironboy - 09.07.2011, 22:44
Re: Registered member? - by [HiC]TheKiller - 09.07.2011, 23:14
Re: Registered member? - by Calgon - 10.07.2011, 00:16
Re: Registered member? - by Ironboy - 10.07.2011, 07:42
Re: Registered member? - by YoUnG_MoNeY - 10.07.2011, 11:22
Re: Registered member? - by YoUnG_MoNeY - 10.07.2011, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)