25.03.2010, 20:54
Why doesn't this work?
Код:
public OnVehicleSpawn(vehicleid) { if(vehicleid == Tuned) { AddVehicleComponent(Tuned,1026); AddVehicleComponent(Tuned,1027); AddVehicleComponent(Tuned,1028); AddVehicleComponent(Tuned,1032); AddVehicleComponent(Tuned,1080); AddVehicleComponent(Tuned,1138); AddVehicleComponent(Tuned,1141); AddVehicleComponent(Tuned,1171); AddVehicleComponent(Tuned,1010); AddVehicleComponent(Tuned,1087); //Hydrolics ChangeVehiclePaintjob(Tuned,1); } else if(vehicleid == Tuned1) { AddVehicleComponent(Tuned1,1026); AddVehicleComponent(Tuned1,1027); AddVehicleComponent(Tuned1,1028); AddVehicleComponent(Tuned1,1032); AddVehicleComponent(Tuned1,1080); AddVehicleComponent(Tuned1,1138); AddVehicleComponent(Tuned1,1141); AddVehicleComponent(Tuned1,1171); AddVehicleComponent(Tuned1,1010); AddVehicleComponent(Tuned1,1087); //Hydrolics ChangeVehiclePaintjob(Tuned1,2); } else if(vehicleid == Tuned2) { AddVehicleComponent(Tuned2,1026); AddVehicleComponent(Tuned2,1027); AddVehicleComponent(Tuned2,1028); AddVehicleComponent(Tuned2,1032); AddVehicleComponent(Tuned2,1080); AddVehicleComponent(Tuned2,1138); AddVehicleComponent(Tuned2,1141); AddVehicleComponent(Tuned2,1171); AddVehicleComponent(Tuned2,1010); AddVehicleComponent(Tuned2,1087); //Hydrolics ChangeVehiclePaintjob(Tuned2,1); } else if(vehicleid == Tuned3) { AddVehicleComponent(Tuned3,1026); AddVehicleComponent(Tuned3,1027); AddVehicleComponent(Tuned3,1028); AddVehicleComponent(Tuned3,1032); AddVehicleComponent(Tuned3,1080); AddVehicleComponent(Tuned3,1138); AddVehicleComponent(Tuned3,1141); AddVehicleComponent(Tuned3,1171); AddVehicleComponent(Tuned3,1010); AddVehicleComponent(Tuned3,1087); //Hydrolics ChangeVehiclePaintjob(Tuned3,1); } else if(vehicleid == Tuned4) { AddVehicleComponent(Tuned4,1026); AddVehicleComponent(Tuned4,1027); AddVehicleComponent(Tuned4,1028); AddVehicleComponent(Tuned4,1032); AddVehicleComponent(Tuned4,1080); AddVehicleComponent(Tuned4,1138); AddVehicleComponent(Tuned4,1141); AddVehicleComponent(Tuned4,1171); AddVehicleComponent(Tuned4,1010); AddVehicleComponent(Tuned4,1087); //Hydrolics ChangeVehiclePaintjob(Tuned4,1); } else if(vehicleid == Tuned5) { AddVehicleComponent(Tuned5,1026); AddVehicleComponent(Tuned5,1027); AddVehicleComponent(Tuned5,1028); AddVehicleComponent(Tuned5,1032); AddVehicleComponent(Tuned5,1080); AddVehicleComponent(Tuned5,1138); AddVehicleComponent(Tuned5,1141); AddVehicleComponent(Tuned5,1171); AddVehicleComponent(Tuned5,1010); AddVehicleComponent(Tuned5,1087); //Hydrolics ChangeVehiclePaintjob(Tuned5,1); } else if(vehicleid == Tuned6) { AddVehicleComponent(Tuned6,1026); AddVehicleComponent(Tuned6,1027); AddVehicleComponent(Tuned6,1028); AddVehicleComponent(Tuned6,1032); AddVehicleComponent(Tuned6,1080); AddVehicleComponent(Tuned6,1138); AddVehicleComponent(Tuned6,1141); AddVehicleComponent(Tuned6,1171); AddVehicleComponent(Tuned6,1010); AddVehicleComponent(Tuned6,1087); //Hydrolics ChangeVehiclePaintjob(Tuned6,1); } return 1; }