I'm creating a simple combat system but do not want it to affect the owner..
I used the basic script from the wiki and adapted a few of my own code.
For the life of me i cant see why im getting syntax errors...
Anyway, heres the code

//Simple autokiller bullet:
//When it rezzed it scans for the closest person,
//Moves to their location and kills them. (Because
//It collides with them)
default {
state_entry()
{
llSetAlpha(0,ALL_SIDES);
}
on_rez(integer i)
{
if(AGENT == llGetOwner())
{
llSetDamage(0);
}
}
else
{
llSetTimerEvent(10.0);
llSetDamage(100);
llSensor("", "", AGENT, PI, 1.0);
}
timer()
{
llDie();
}
sensor(integer num) {
for(num = 100;--num; )
llSetPos(llDetectedPos(0));
}
}