09.01.2014, 01:23
In the case of this function, or any other like it:
What does the ! in it do?
Код:
if(!IsPlayerConnected(userid))
if(!IsPlayerConnected(userid))
bool x = true; while(!x) //while x is not true, aka while x is false { }
int x; if(!(x < 10)) //means the opposite of if x is smaller than 10, = x is bigger than 10 if(x != 10) //if x is not 10 //or if(!(x == 10)) //would do the same thing but != is much easier to write