Randoms
#4

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
Try this
pawn Код:
// Your_Callback()
{
    // Code(Optional. If you have)
    new
        decide = random(2);
    switch(decide) {
        case 0: {
            return EVENT_TEAM_RED;
        }
        case 1: {
            return EVENT_TEAM_BLUE;
        }
    }
    // Rest
    return 1;
}
Take a look at code optimization. You have a singular type statement yet you group it as a compound statement.
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)