Reading from file not working properly
#1

I really don't know what i'm doing wrong. Can anyone help me please? Thanks!

pawn Код:
new File:hFile=fopen("ler.txt",io_read);
        new l;
        while(fread(hFile,string))
        {
            l++;
            if(l==1)
            {
                //format(string,sizeof(string),"%s",string);
                SendClientMessage(playerid,amarelo,string);
            }
            else
            {
                //format(string,sizeof(string),"%s",string);
                SendClientMessage(playerid,azul,string);
            }
            fclose(hFile);
        }
Reply


Messages In This Thread
Reading from file not working properly - by russo666 - 20.05.2010, 23:15
Re: Reading from file not working properly - by pmk1 - 20.05.2010, 23:26
Re: Reading from file not working properly - by russo666 - 20.05.2010, 23:34
Re: Reading from file not working properly - by Zeex - 21.05.2010, 03:18
Re: Reading from file not working properly - by russo666 - 21.05.2010, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)