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

strcmp returns values other than 0 if they're not equal. So you can simply remove "!" from your strcmp's if statement or do as follow :
pawn Код:
if(strcmp(string, string2, true) != 0) {
    //not equal.
}
EDIT : Late.
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)