Why not wrk? strcmp + reading file!
#8

because your strcmp was wrong
pawn Код:
if(strcmp(string, player, true))
strcmp returns 0 if strings match, 1 is str1 is greater then str2 and -1 if str2 is greater.
You would need to do
pawn Код:
if(!strcmp(string, player, true))
And the comparing string (str1) was a whole line from a file. I don't know your file structure, but you probably have more text written in a line, then just 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: 1 Guest(s)