Posts: 559
Threads: 50
Joined: Mar 2012
Reputation:
0
Well i ask one of my friends (Ronaldo) i ask him if MYSQL is easy and he say no, so i use y_ini instead of MYSQL
Posts: 845
Threads: 3
Joined: Jun 2010
pawn Код:
new counter, name[128];
while( fmatch(name, "path/*.ini", counter) )
counter++;
printf("There are %d files with the ending \".ini\" in folder \"path\".", counter);
Maybe this will work.
Edit:
Nope, seems like this function doesn't exists. (well, only defined in the file include...)
Posts: 845
Threads: 3
Joined: Jun 2010
If that code doesn't work, you have just 2 options:
1. use a plugin or
2. create a file, where all the user-file-names are saved in (each line one name)
and count the lines. (on every file-creation, for example if somebody registers a new account,
you append the new file-name to the user-file-name-file. You could even just save a number in a
file and increase the number if someone registers)