Explanation needed.
#5

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");
Reply


Messages In This Thread
Explanation needed. - by TaLhA XIV - 08.09.2012, 18:31
Re: Explanation needed. - by Glint - 08.09.2012, 18:33
Re: Explanation needed. - by TaLhA XIV - 08.09.2012, 18:50
Re: Explanation needed. - by TaLhA XIV - 08.09.2012, 20:00
Re: Explanation needed. - by SuperViper - 08.09.2012, 20:02
Re: Explanation needed. - by TaLhA XIV - 08.09.2012, 20:13
Re: Explanation needed. - by Hiddos - 08.09.2012, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)