How to Compare if 2 strings are NOT equal?
#2

Returns 0 if they're equal so check if it's not 0:
pawn Код:
if(strcmp(Faction_GetName(playerid), "S.W.A.T", true))
pawn Код:
if(strcmp(Faction_GetName(playerid), "S.W.A.T", true) != 0)
Reply


Messages In This Thread
How to Compare if 2 strings are NOT equal? - by Ritzy2K - 26.04.2016, 11:45
Re: How to Compare if 2 strings are NOT equal? - by Konstantinos - 26.04.2016, 11:50
Re: How to Compare if 2 strings are NOT equal? - by Lordzy - 26.04.2016, 11:51
Re: How to Compare if 2 strings are NOT equal? - by Ritzy2K - 26.04.2016, 11:52
Re: How to Compare if 2 strings are NOT equal? - by Ritzy2K - 26.04.2016, 12:00
Re: How to Compare if 2 strings are NOT equal? - by Konstantinos - 26.04.2016, 12:01
Re: How to Compare if 2 strings are NOT equal? - by Ritzy2K - 26.04.2016, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)