View Single Post
Old 03-07-2012, 02:43 PM   #136
Marius Fett
Frigged if I know!
 
Marius Fett's Avatar
 
Join Date: May 2007
Location: Wales
Posts: 3,378
You haven't declared your variables.

For example, oPC on it's own doesn't mean anything. If you do this:

Code:
void main()
	{
		object oPC = GetFirstPC();
		
		CreateItemOnObject("g_a_jediscout", oPC);
		CreateItemOnObject("g_w_lghtsbr10", oPC);
	}
It should work fine. Same with oTarget, you haven't said what oTarget is.




Visit the new JediKnight.net!
Marius Fett is online now   you may: quote & reply,