15.08.2013, 13:49
Quote:
All of these questions you can answer yourself by testing it out, fyi.
pawn Код:
|
Код:
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 Код:
main()
{
new a;
a = (a == 0) ? 1, print("1") : 0, print("0");
}
Quote:
pawn Код:
|
Quote:
pawn Код:
|
pawn Код:
enum ASD : (<< = 1)
{
One = 1,
Two,
Three
}
new ASD:DSA[MAX_PLAYERS];
//So how can I use ternary operator here to set Two to 0 or 1?