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

Ok, i want that if the string DOESN'T match, it should send this message, but with this code, it will send the message if the string matches right? Any idea how do i check about inequality with strcmp?

Код:
if(!strcmp(Faction_GetName(playerid), "S.W.A.T", true, 5))
	    return SendErrorMessage(playerid, "You're not S.W.A.T Member");
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)