naseem142 
 
 
		
			Member 
			
			
			
 
			
	Posts: 153 
	Threads: 19 
	Joined: Oct 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: My problems 
			 
			
				Okay thanks   
			 
			
			
			
		 |  
	 
 | 
 
	| 10-18-2012, 08:51 PM  | 
	
		
	 | 
 
 
	
		
		naseem142 
 
 
		
			Member 
			
			
			
 
			
	Posts: 153 
	Threads: 19 
	Joined: Oct 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: My problems 
			 
			
				I have no idea how to do this function , please help me. please. 
ಠ_ಠ 
 
 
My key's name: Key_0 
 
 
Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1);
			 
			
			
			
		 |  
	 
 | 
 
	| 10-19-2012, 12:07 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: My problems 
			 
			
				void GiveItem("Key_0", "Puzzle", "Key_0", "key_tomb.tga", 1) 
 
I just wrote key_tomb, but it could be any of the other keys. 
 
The "asType" is always "Puzzle"
			 
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
 
	| 10-19-2012, 12:48 PM  | 
	
		
	 | 
 
 
	
		
		The chaser 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,486 
	Threads: 76 
	Joined: Jun 2012
	
 Reputation: 
113
		
	 | 
	
		
			
RE: My problems 
			 
			
				 (10-19-2012, 12:07 PM)naseem142 Wrote:  I have no idea how to do this function , please help me. please. 
ಠ_ಠ 
 
 
My key's name: Key_0 
 
 
Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1); void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1);
			  
			
			
 
                              THE OTHERWORLD (WIP) 
 
Aculy iz dolan.  
			
		 |  
	 
 | 
 
	| 10-19-2012, 12:50 PM  | 
	
		
	 | 
 
 
	
		
		Robby 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,549 
	Threads: 38 
	Joined: Jun 2009
	
 Reputation: 
47
		
	 | 
	
		
			
RE: My problems 
			 
			
				I don't think that's the way you write a script like that. 
 
It should be something like: 
void FuncName(string &in asParent, string &in asChild, int alState) -in the case of a script zone. 
{ 
GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , 1); 
} 
 
Do you have an entity named "Key_0.ent"? If not, it won't work.
			 
			
			
 
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active. 
			
		 |  
	 
 | 
 
	| 10-19-2012, 12:52 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: My problems 
			 
			
				He just didn't get the function    I don't know why asType is puzzle either..
			  
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
 
	| 10-19-2012, 12:56 PM  | 
	
		
	 | 
 
 
	
		
		naseem142 
 
 
		
			Member 
			
			
			
 
			
	Posts: 153 
	Threads: 19 
	Joined: Oct 2012
	
 Reputation: 
0
		
	 | 
	
		
			
RE: My problems 
			 
			
				 (10-19-2012, 12:50 PM)The chaser Wrote:   (10-19-2012, 12:07 PM)naseem142 Wrote:  I have no idea how to do this function , please help me. please. 
ಠ_ಠ 
 
 
My key's name: Key_0 
 
 
Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1); void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1); 	Error , ) expected :|
			  
			
			
			
		 |  
	 
 | 
 
	| 10-19-2012, 12:56 PM  | 
	
		
	 | 
 
 
	
		
		The chaser 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,486 
	Threads: 76 
	Joined: Jun 2012
	
 Reputation: 
113
		
	 | 
	
		
			
RE: My problems 
			 
			
				Ok, then something like this: 
{ 
GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);  
} 
 
This is from the wiki, it gives you a hammer-chipper. Change it to the name of your key and everything should work fine. Don't touch the Puzzle part. Just the "stone_hammer_chipper". And the image.
			 
			
			
 
                              THE OTHERWORLD (WIP) 
 
Aculy iz dolan.  
			
				
(This post was last modified: 10-19-2012, 01:06 PM by The chaser.)
 
				
			 
		 |  
	 
 | 
 
	| 10-19-2012, 12:57 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: My problems 
			 
			
				 (10-19-2012, 12:56 PM)naseem142 Wrote:   (10-19-2012, 12:50 PM)The chaser Wrote:   (10-19-2012, 12:07 PM)naseem142 Wrote:  I have no idea how to do this function , please help me. please. 
ಠ_ಠ 
 
 
My key's name: Key_0 
 
 
Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1); void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1); 	Error , ) expected :| Yea, you do not write "float" in a function    and Key_0 needs these "". The middle Key_0 should be "Puzzle" though
			  
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
 
	| 10-19-2012, 01:18 PM  | 
	
		
	 | 
 
 
	
		
		The chaser 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 2,486 
	Threads: 76 
	Joined: Jun 2012
	
 Reputation: 
113
		
	 | 
	
		
			
RE: My problems 
			 
			
				 (10-19-2012, 01:18 PM)beecake Wrote:   (10-19-2012, 12:56 PM)naseem142 Wrote:   (10-19-2012, 12:50 PM)The chaser Wrote:   (10-19-2012, 12:07 PM)naseem142 Wrote:  I have no idea how to do this function , please help me. please. 
ಠ_ಠ 
 
 
My key's name: Key_0 
 
 
Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount); 
 
Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1); void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1); 	Error , ) expected :| Yea, you do not write "float" in a function   and Key_0 needs these "". The middle Key_0 should be "Puzzle" though Didn't see that. Thanks, beecake   
			 
			
			
 
                              THE OTHERWORLD (WIP) 
 
Aculy iz dolan.  
			
		 |  
	 
 | 
 
	| 10-19-2012, 01:26 PM  | 
	
		
	 | 
 
 
	 
 |