How to "switch"
#6

My try:

pawn Код:
switch(arena1[playerid])
{
    case 1:
    {
        new arena2 = random(sizeof(arenaspawn));
        SetPlayerPos(playerid, arenaspawn[arena2][0], arenaspawn[arena2][1], arenaspawn[arena2][2]);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 38,999999);
    }
}
switch(arenade1[playerid])
{
    case 1:
    {
        new arenade2 = random(sizeof(arenadespawn));
        SetPlayerPos(playerid, arenadespawn[arenade2][0], arenadespawn[arenade2][1], arenadespawn[arenade2][2]);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 24,200);
    }
}
switch(arenaso1[playerid])
{
    case 1:
    {
        new arenaso2 = random(sizeof(arenasospawn));
        SetPlayerPos(playerid, arenasospawn[arenaso2][0], arenasospawn[arenaso2][1], arenasospawn[arenaso2][2]);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid, 26,300);
    }
}
I know this can be smaller, but how ?(Just another question)


Greetings, micol.
Reply


Messages In This Thread
How to "switch" - by micol - 07.01.2013, 15:25
Re: How to "switch" - by gtakillerIV - 07.01.2013, 15:38
Re: How to "switch" - by AndreT - 07.01.2013, 15:44
Re: How to "switch" - by micol - 07.01.2013, 19:59
Re: How to "switch" - by gtakillerIV - 08.01.2013, 17:14
Re: How to "switch" - by micol - 09.01.2013, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)