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.