18.09.2013, 16:24
It's called ternary operator. Although, the way it's used in the code above is confused.
Basically, it goes like that.
In a way you can understand:
Basically, it goes like that.
pawn Код:
// An example:
new
bool: a,
b = 10
;
a = ( b == 10 ) ? true : false;
pawn Код:
if( b == 10 ) a = true;
else a = false;