08.09.2012, 20:02
pawn Код:
IsConnected[playerid] = (IsPlayerConnected(playerid)) ? 1 : 0;
(IsPlayerConnected(playerid)) is the if statement
? is pretty much the opening bracket
: is the else statement
For strings you'll need to enclose it in parenthesis, ex:
pawn Код:
PlayersRank[playerid] = (IsPlayerAdmin(playerid)) ? ("Administrator") : ("Player");

