15.08.2013, 15:11
Got it! Thanks. What about this?
I tested with the link you gave me(I don't have pawno) but it gives me errors.
The codes
Can I use multiple actions in ternary operator?
Quote:
pawn Code:
|
Code:
input(6) : error 1: expected token: ":", but found "," input(6) : error 1: expected token: ";", but found ":" input(6) : error 29: invalid expression, assumed zero input(6) : fatal error 107: too many error messages on one line
pawn Code:
main()
{
new a;
a = (a == 0) ? 1, print("1") : 0, print("0");
}