Jump to content
  • 0

pomoc Case


Gatsby^

Dotaz

Ahojte, potreboval by som poradiť ako spraviť niečo ako keby cyklus. Potrebujem aby vždy po case2 to skočilo zase na zase 0

 

 

switch(Ukol)
        {
         case 0:
            {
             SetPlayerInterior(i,0);
}
            case 1:
            {
             SetPlayerInterior(i,0);
}
case 2:
            {
             SetPlayerInterior(i,0);
}

 

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

 

Ahojte, potreboval by som poradiť ako spraviť niečo ako keby cyklus. Potrebujem aby vždy po case2 to skočilo zase na zase 0

 

 

switch(Ukol)
        {
case 1:
            {
             SetPlayerInterior(i,0);
}
case 2:
            {
             SetPlayerInterior(i,0);
}
case 0:
default:
            {
            SetPlayerInterior(i,0);
}
}

 

Neviem aka je syntax switchu v Pawn, ale kazdopadne toto by malo fungovat.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...