Why not wrk? strcmp + reading file!
#6

pawn Код:
format(str, sizeof(str), "%c%s%c", ' ', player, ' ');
while(fread(file,string,sizeof(string)))
{
  if(strfind(string, str, true) != -1)
  {
    SendClientMessage(playerid,COLOR_RED,"Yes, your name is in the file called armysafe.txt");
    printf("%s",string);
  }
}
Untested, but it should work. It will search for " BM[UK] "
Reply


Messages In This Thread
Why not wrk? strcmp + reading file! - by BMUK - 01.10.2009, 20:04
Re: Why not wrk? strcmp + reading file! - by brett7 - 01.10.2009, 20:19
Re: Why not wrk? strcmp + reading file! - by Jamesy - 01.10.2009, 20:25
Re: Why not wrk? strcmp + reading file! - by dice7 - 01.10.2009, 20:49
Re: Why not wrk? strcmp + reading file! - by BMUK - 01.10.2009, 21:03
Re: Why not wrk? strcmp + reading file! - by dice7 - 01.10.2009, 21:12
Re: Why not wrk? strcmp + reading file! - by BMUK - 01.10.2009, 21:27
Re: Why not wrk? strcmp + reading file! - by dice7 - 01.10.2009, 21:30
Re: Why not wrk? strcmp + reading file! - by Jamesy - 01.10.2009, 21:37
Re: Why not wrk? strcmp + reading file! - by BMUK - 01.10.2009, 21:44

Forum Jump:


Users browsing this thread: 2 Guest(s)