[HELP] Checking through userfiles - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Checking through userfiles (
/showthread.php?tid=270845)
[HELP] Checking through userfiles -
Dudits - 21.07.2011
I managed to do it before but totally forgot the way.
I wanted to make a command check through ALL userfiles to bring a value, help

?
Re: [HELP] Checking through userfiles -
Dudits - 22.07.2011
Bump.
Re: [HELP] Checking through userfiles -
Vince - 22.07.2011
SQL.
Re: [HELP] Checking through userfiles -
Dudits - 22.07.2011
Without MySQL...
Re: [HELP] Checking through userfiles -
Toreno - 22.07.2011
You mean using while and fread?
Re: [HELP] Checking through userfiles -
Dudits - 22.07.2011
I don't remember how did I do it before, I need help with ANYTHING that lets me check through ALL userfiles.
Re: [HELP] Checking through userfiles -
Toreno - 22.07.2011
I don't get you, are you talking about something like this?
pawn Код:
stock IsPlayerNameRegistered(playerid) {
new PlayerName[MAX_PLAYER_NAME], file[39];
format(file, sizeof(file), "userfiles/%s.ini", PlayerName);
if(fexist(file)) return SendClientMessage(playerid, -1, "This player name is already registered!");
return 1;
}
Re: [HELP] Checking through userfiles -
Toreno - 22.07.2011
EDIT: This forum works too slowly.
Re: [HELP] Checking through userfiles -
Dudits - 22.07.2011
Quote:
Originally Posted by ******
There is no way to scan files without a plugin. However, with a plugin such as y_files you can use standard file pattens such as "*.ini" to list files.
It can, however, depend on your user system. For example mine has an index file which relates username to filename, so you can iterate through that file to get all user files without a plugin.
The other option would be "fmatch", but in my experience that doesn't seem to work.
|
I simply want something to check through my userfiles 'n list people who have "BlahBlah=1".
Mind giving me an example

?
Re: [HELP] Checking through userfiles -
Dudits - 22.07.2011
Bump