Posts: 160
Threads: 40
Joined: Jul 2015
How can i make a function the checkes all the files in a folder for a string like "Account_ID = 123456"
Posts: 108
Threads: 6
Joined: Jun 2014
Reputation:
0
What do you use for saving/loading, dini or y_ini?
Posts: 791
Threads: 65
Joined: Oct 2009
Reputation:
0
you cant without using plugins
Posts: 160
Threads: 40
Joined: Jul 2015
i use dini and y_ini both
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
You wanna search for a file or value inside some file ?
Posts: 160
Threads: 40
Joined: Jul 2015
Quote:
Originally Posted by xVIP3Rx
You wanna search for a file or value inside some file ?
|
i want to search a string from all files which contain in a folder
Posts: 160
Threads: 40
Joined: Jul 2015
Quote:
Originally Posted by xVIP3Rx
Loop through them, load each, get the string, check if it equals whatever and close/open the next file
|
PHP код:
for(new i = 0; i < /*what can i add here for file ?*/; i++)
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
maybe an average for files, or the number of registered players..
Posts: 216
Threads: 27
Joined: Jun 2014
Reputation:
0
I would suggest making another separate .ini file saving all players names with their ids, and when u want to check all the files, first load that single ini get all names from it and then load each one.