14.07.2016, 19:47
Add this to your tutorial to remove all the fuss of using a ternary operator >
and there you go, you can simply use it as TernaryOperator(check, iftrue, iffalse) without worrying about braces n stuff (Since pawn's compiler has a problem with ternary operators containing strings you could use it as %0?%1:%2 but you would encounter some problems, I suggest you to stick to that^^).
PHP Code:
#define TernaryOperator(%0,%1,%2) ((%0)?(%1):(%2))