Does anyone see whats wrong with this?
I was getting syntax error at first and did some revising, but the players are still spawning at default spawns. :?

Code:
spawnsys()
{
spawnwhere = RandomInt(5); //We have 6 spawns for each team.
//Define spawns for the first and 2nd team.
if(self.team == "allies")
	{
        switch(spawnwhere)
		{
        case 0:
        self.origin = (-310.8,  4853.7,  253.1); //Custom spawn location 1.
        self.angles = ( 0,  36, 0); //Uncomment if you want to change the view.
        break;
        case 1:
        self.origin = (-56.7,  4866.4,  253.1); //Custom spawn location 2.
        self.angles = ( 0,  125, 0); //Uncomment if you want to change the view.
        break;
        case 2:
        self.origin = (-57.3,  5383.9,  253.1); //Custom spawn location 3.
        self.angles = ( 0,  262, 0); //Uncomment if you want to change the view.
        break;
		case 3:
        self.origin = ( 75.3,  5405.2,  252.1); //Custom spawn location 1.
        self.angles = ( 0,  301, 0); //Uncomment if you want to change the view.
        break;
		case 4:
        self.origin = ( 396.9,  5062,  252.1); //Custom spawn location 1.
        self.angles = ( 0,  273, 0); //Uncomment if you want to change the view.
        break;
		case 5:
        self.origin = (-439.5,  5585.2,  252.1); //Custom spawn location 1.
        self.angles = (0,0,0); //Uncomment if you want to change the view.
        break;
		}
	}
else if(self.team == "axis")
	{
        switch(spawnwhere)
		{
        case 0:
        self.origin = ( 2254.7,  4485.5,  252.1); //Custom spawn location 1.
        self.angles = ( 0,  128, 0); //Uncomment if you want to change the view.
        break;
        case 1:
        self.origin = ( 1944.4,  5035.9,  252.1); //Custom spawn location 2.
        self.angles = ( 0,  277, 0); //Uncomment if you want to change the view.
        break;
        case 2:
        self.origin = ( 2307.0,  4731.8,  252.1); //Custom spawn location 3.
        self.angles = ( 0,  158, 0); //Uncomment if you want to change the view.
        break;
		case 3:
        self.origin = ( 2579.4,  4748.6,  252.1); //Custom spawn location 1.
        self.angles = ( 0,  90, 0); //Uncomment if you want to change the view.
        break;
		case 4:
        self.origin = ( 2202.1,  4198.3,  108.1); //Custom spawn location 1.
        self.angles = ( 0,  0, 0); //Uncomment if you want to change the view.
        break;
		case 5:
        self.origin = ( 2616.8,  4130.4,  108.1); //Custom spawn location 1.
        self.angles = ( 0,  180, 0); //Uncomment if you want to change the view.
        break;
		}
	}
}