SendClientMessage loop
#5

Quote:
Originally Posted by ahmedkoki
Посмотреть сообщение
This worked but it shows in game

Код:
./scriptfiles/Groups/ - Filename1 - Filename2
I don't want "./scriptfiles/Groups/" to be viewed
Here:
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;
       
    new msg[500];
    while(dir_list(dHandle, item, type))
    {
        if(type == FM_FILE)
        {
            new tmpItem[40];
            strdel(item, strfind(item, ".ini"), strlen(item));
            format(tmpItem, sizeof(tmpItem), " - %s", item);
            strcat(msg, tmpItem);
            contor++;
        }
    }
    strdel(msg, 0, 2); //Removes the " - " in the start... :D
    SendClientMessage(playerid, -1, msg);
    dir_close(dHandle);
    return 1;
}
Reply


Messages In This Thread
SendClientMessage loop - by ahmedkoki - 15.01.2015, 12:02
Re: SendClientMessage loop - by Ahmad45123 - 15.01.2015, 12:11
Re: SendClientMessage loop - by ahmedkoki - 15.01.2015, 12:33
Re: SendClientMessage loop - by Ironboy - 15.01.2015, 13:15
Re: SendClientMessage loop - by Ahmad45123 - 15.01.2015, 13:22
Re: SendClientMessage loop - by ahmedkoki - 15.01.2015, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)