ternary operator, increasing vars.
#1

pawn Code:
(PlayerI[i][Team] == 1) ? ServerI[PlayersInTeamA]++ : ServerI[PlayersInTeamB]++;
how could I make this without getting an warning: expression has no effect?

I want to increase Players in team A if player team == 1, or if its not, it will increase in team B
Reply


Messages In This Thread
ternary operator, increasing vars. - by EV007 - 07.10.2012, 16:18
Re: ternary operator, increasing vars. - by ReneG - 07.10.2012, 16:32
Re: ternary operator, increasing vars. - by EV007 - 07.10.2012, 16:34
Re: ternary operator, increasing vars. - by ReneG - 07.10.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)