i3670 
			Posting Freak36  
	
		
			
LocalVar 
 
				Hi got this small problem with my script.
Spoiler below!  
 
 
After I've interacted with 1 flask, doesn't matter which one, 1 armour is supposed to get active This, however, doesn't really work exactly to plan.
If I for instance interact with flask_3 first all armours gets activated, regardless if I've interacted with the other 2. If I interact with flask_1 nothing happens, this also goes for flask_2. However if I interact with 1 and then 2 or the other way around only 1 armour gets activated.
			
				
(This post was last modified: 09-12-2012, 12:46 PM by i3670 .) 
 
				
			 
		 
 
 
	09-11-2012, 10:43 PM  
		
	 
 
	
		Adny 
			Posting Freak173  
	
		
			
RE: LocalVar 
 
				Try something like this:
			
			
I rate it 3 memes.
			
				
(This post was last modified: 09-11-2012, 11:17 PM by Adny .) 
 
				
			 
		 
 
 
	09-11-2012, 11:16 PM  
		
	 
 
	
		Tomato Cat 
			Senior Member20  
	
		
			
RE: LocalVar 
 
				*edit*
NINJA'D >.<
I think that this line:
SetEntityPlayerInteractCallback("Flask_"+i+"", "AddLocalNumber", false);
should be this instead:
SetEntityPlayerInteractCallback("Flask_"+i, "AddLocalNumber", false);
And I would put your if statements into the "All_Active" function.
Spoiler below!  
void OnStart()
 
 
 
Try that and see if it fixes it.
			
RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
			
				
(This post was last modified: 09-11-2012, 11:18 PM by Tomato Cat .) 
 
				
			 
		 
 
 
	09-11-2012, 11:16 PM  
		
	 
 
	
		FlawlessHappiness 
			Posting Freak171  
	
		
			
RE: LocalVar 
 
				Yes. Before you ask "if(GetLocalVarInt("InsaneImages") == 1)" you will have to "AddLocalVarInt("InsaneImages", 1)" Because otherwise it would just be 0 since you haven't added anything to it
			
			
			
Trying is the first step to success.
			
		 
 
 
	09-12-2012, 07:01 AM