strcmp // !strcmp
#4

'!' - If the outcome of the conditional statement is true, then it will be false and vice-versa.

Kind of a bad explanation...

pawn Код:
new one; // one is 0
if(!one) {
    // this will go through
}

one = 1;
if(!one) {
    // this will not go through
}
If we did on‌e = 1, then the if statement would be considered false and move on.

Edit: found a better explanation.

https://wiki.alliedmods.net/Pawn_tutorial#If_Statements (nothing to do with SA-MP, still good resource)

Reply


Messages In This Thread
strcmp // !strcmp - by elirand21 - 21.07.2014, 18:02
Re: strcmp // !strcmp - by Isolated - 21.07.2014, 18:03
Re: strcmp // !strcmp - by AroseKhanNiazi - 21.07.2014, 18:04
Re: strcmp // !strcmp - by Scaleta - 21.07.2014, 18:13
Re: strcmp // !strcmp - by Ihateyou - 21.07.2014, 18:15
Re: strcmp // !strcmp - by ikkentim - 21.07.2014, 18:30

Forum Jump:


Users browsing this thread: 2 Guest(s)