Read Line
#3

pawn Код:
if (strcmp(cmd, "/read", true) == 0)
{
        new str[100]; //Increase if needed
        new File:example = fopen("procurados.txt", io_read);
        while(fread(example, str))
        {
              format(string, sizeof(string), "%s %s", string, str);
        }
        fclose(example);
        printf("%s",string);
        SendClientMessage(playerid, -1, string);
        return 0x01;
}
Give that a go.
Reply


Messages In This Thread
Read Line - by Ricop522 - 23.06.2011, 20:18
Re: Read Line - by Mauzen - 23.06.2011, 20:20
Re: Read Line - by [HiC]TheKiller - 23.06.2011, 20:29
Re: Read Line - by Ricop522 - 23.06.2011, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)