Using a player array in switch statement
#2

a for loop would pretty much do the same as the multiple if-else statements but looks more neat in my opinion. You could try that i guess.

Maybe it's better to do it like this?
pawn Код:
new contract1[MAX_PLAYERS];
switch(contract1[playerid])
{
case 0:
case 1:
case 2:
}
Reply


Messages In This Thread
Using a player array in switch statement - by Garr - 06.07.2014, 07:47
Re: Using a player array in switch statement - by RedFusion - 06.07.2014, 08:13
Re: Using a player array in switch statement - by RedFusion - 06.07.2014, 08:17
Re: Using a player array in switch statement - by Garr - 06.07.2014, 08:17
Re: Using a player array in switch statement - by RedFusion - 06.07.2014, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)