strfind wont work.
#7

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
new File:fh = fopen("text.txt",io_read);
new Found;
while(fread(fh, str))
    if(strfind(str,"2",true) != -1)
    {
        Found = 1;
        break; // stops the loop
    }

fclose(fh);
return Found; // returns 0 if not found or 1 if match
thanks alot!
Reply


Messages In This Thread
strfind wont work. - by Equality - 08.08.2014, 04:24
Re: strfind wont work. - by Equality - 08.08.2014, 13:31
Re: strfind wont work. - by Jefff - 08.08.2014, 13:50
Re: strfind wont work. - by Equality - 08.08.2014, 15:58
Re: strfind wont work. - by Equality - 08.08.2014, 16:11
Re: strfind wont work. - by Jefff - 08.08.2014, 16:15
Re: strfind wont work. - by Equality - 08.08.2014, 16:24

Forum Jump:


Users browsing this thread: 2 Guest(s)