GidanDaniel
Active member
- Joined
- Feb 22, 2014
- Messages
- 28
- Reaction score
- 0
As Title said, i need help how to use proper REPEAT.. UNTIL :table_flip:
i tried to do this
	
	
	
		
but it seems 'UNTIL' cannot break loop statement when conditions applied, So.. it will repeat the code until i close my GTA :angry:
Any solutions to make 'UNTIL' work? :imoverit:
			
			i tried to do this
		Code:
	
	Repeat
wait 250
actor.health($PLAYER_ACTOR) = 25
wait 250
actor.health($PLAYER_ACTOR) = 50
wait 250
actor.health($PLAYER_ACTOR) = 75
wait 250
actor.health($PLAYER_ACTOR) = 100
until 0AB0: key_pressed 49 OR actor.dead($PLAYER_ACTOR) //repeat should be stopped if i press '1' or i'm deadbut it seems 'UNTIL' cannot break loop statement when conditions applied, So.. it will repeat the code until i close my GTA :angry:
Any solutions to make 'UNTIL' work? :imoverit:
 
				 
 
		 
 
		 
 
		