Strcmp
#2

strcmp returns 0 if the condition is true, and 1 if it's not. Change your strcmp code line to this:

pawn Код:
if(!strcmp(GangName, GangInfo[i][gName], true))
Does that fix your problem?

The '!' (exclamation mark) checks if the value is 0 or if it's less than 0.
Reply


Messages In This Thread
Strcmp - by Cowboy - 24.12.2011, 12:02
Re: Strcmp - by Calgon - 24.12.2011, 12:04
Re: Strcmp - by Cowboy - 24.12.2011, 12:10
Re: Strcmp - by Thresholdold - 24.12.2011, 12:13
Re: Strcmp - by Cowboy - 24.12.2011, 12:17
Re: Strcmp - by Ash. - 24.12.2011, 12:20
Re: Strcmp - by Ballu Miaa - 24.12.2011, 12:22
Re: Strcmp - by Cowboy - 24.12.2011, 12:27
Re: Strcmp - by Ash. - 24.12.2011, 12:34
Re: Strcmp - by Cowboy - 24.12.2011, 12:38

Forum Jump:


Users browsing this thread: 2 Guest(s)