15.01.2015, 12:02
Ok I have this but it returns the files like this
so I want it to sendclientmessage as
Код:
Filename1 Filename2
Код:
Filename1 - Filename2
pawn Код:
stock NumFiles(playerid)
{
new string[50];
format(string, sizeof(string), "./scriptfiles/Groups/");
new dir:dHandle = dir_open(string);
new item[40], type, contor = -1;
while(dir_list(dHandle, item, type))
{
if(type == FM_FILE)
{
strdel(item, strfind(item, ".ini"), strlen(item));
format(string, sizeof(string), item);
SendClientMessage(playerid, -1, string);
contor++;
}
}
dir_close(dHandle);
return 1;
}