02.12.2011, 13:31
In sort, what he means(at least i think) is to make it like that.
By the way i always prefer to have the brackets in the same place(both opening and closing) and if it's just a value, same line with the "new", but this is just how i like it. Your choice!
pawn Код:
new
decide = random(2);
switch(decide) {
case 0: return EVENT_TEAM_RED;
case 1: return EVENT_TEAM_BLUE;
}
pawn Код:
new decide = random(2);
switch(decide)
{
case 0: return EVENT_TEAM_RED;
case 1: return EVENT_TEAM_BLUE;
}