A few problem
#4

lets say you search for a player file, than you use some pattern for like like PlayerName.txt
pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
strcat(name, ".txt", MAX_PLAYER_NAME);
if(fexist(name)) {}
or you got some maps and dont know if the map exist
pawn Код:
new name[16];
format(name, sizeof name, "Map_%d.txt", mapid);
if(fexist(name)) {}
or just tell me why you need to search in a folder for some random files?

If you want to create a command which list all registered players as example
Than you only need to create an extra file which stores all names
Reply


Messages In This Thread
A few problem - by blackwave - 27.02.2011, 12:23
AW: A few problem - by Nero_3D - 27.02.2011, 12:50
Re: A few problem - by blackwave - 27.02.2011, 13:53
AW: A few problem - by Nero_3D - 27.02.2011, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)