Randoms
#9

In sort, what he means(at least i think) is to make it like that.
pawn Код:
new
    decide = random(2);
    switch(decide) {
            case 0: return EVENT_TEAM_RED;
            case 1: return EVENT_TEAM_BLUE;
    }
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;
}
Reply


Messages In This Thread
Randoms - by Rob_Maate - 02.12.2011, 11:40
Re: Randoms - by Sinc - 02.12.2011, 11:49
Re: Randoms - by Kostas' - 02.12.2011, 11:49
Re: Randoms - by Sinc - 02.12.2011, 11:53
Re: Randoms - by Rob_Maate - 02.12.2011, 12:08
Re: Randoms - by titanak - 02.12.2011, 12:11
Re: Randoms - by Rob_Maate - 02.12.2011, 12:39
Re: Randoms - by Sinc - 02.12.2011, 12:47
Re: Randoms - by Dark_Kostas - 02.12.2011, 13:31
Re: Randoms - by Sinc - 02.12.2011, 13:43

Forum Jump:


Users browsing this thread: 3 Guest(s)