Gatsby^ 2 Odesláno: 19. Srpen, 2014 Share Odesláno: 19. Srpen, 2014 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 More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 19. Srpen, 2014 Globální moderátor Share Odesláno: 19. Srpen, 2014 case 0: case 1: case 2: default: Teda pokud jsem správně pochopil co máš na mysli Link to comment Share on other sites More sharing options...
0 elRobertino 0 Odesláno: 19. Srpen, 2014 Share Odesláno: 19. Srpen, 2014 case 0: case 1: case 2: default: Teda pokud jsem správně pochopil co máš na mysli Asi keď bude na case 2 a skončí sa, tak zase pôjde case 0 Link to comment Share on other sites More sharing options...
0 ZaKlaus 17 Odesláno: 19. Srpen, 2014 Share Odesláno: 19. Srpen, 2014 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 More sharing options...
0 NoJo_ 0 Odesláno: 19. Srpen, 2014 Share Odesláno: 19. Srpen, 2014 daj si cyklus kt. sa bude neustále opakovať a keď skočí na case 2 tak skončí a spustí sa znova Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 19. Srpen, 2014 Share Odesláno: 19. Srpen, 2014 skus kuknut statement goto Link to comment Share on other sites More sharing options...
0 Gatsby^ 2 Odesláno: 19. Srpen, 2014 Author Share Odesláno: 19. Srpen, 2014 Keby spravím ešte jedno case? case 3: { Ukol = 0; } niekde som to tak videl Link to comment Share on other sites More sharing options...
0 Matess 36 Odesláno: 19. Srpen, 2014 Share Odesláno: 19. Srpen, 2014 Pokud proměnná Ukol někdy dosáhne čísla 3, tak ano, ale pokud jen 2, tak to vynuluj v case 2... Link to comment Share on other sites More sharing options...
Dotaz
Gatsby^ 2
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
Link to comment
Share on other sites
7 odpovědí na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now