15.05.2011, 18:03
Quote:
Its not variables,its just the classid with is already defined
For example: pawn Код:
|
pawn Код:
switch(classid) {
case 1, 2, 3, 4, 5, 6: { // or 1...6
gTeam[playerid] = TEAM_X;
}
}
pawn Код:
if(1 <= classid <= 6) gTeam[playerid] = TEAM_X; // If this is the right operator
// or
if(classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6) gTeam[playerid] = TEAM_X;