01.10.2015, 21:06
(
Последний раз редактировалось McGuiness; 02.10.2015 в 18:52.
)
So I managed to have the errors fixed on my codes, but the problem is now they won't show, I did two particles to merge to make yellow, but they don't show on the vehicle
Code:
I don't even know what the problem is (its on a timer as it has to change) but I can't figure out what the problem is....
Code:
pawn Код:
public TrafficFlasherLeftFunc()
{
for(new p=0; p<MAX_VEHICLES; p++)
{
if(TrafficLeft[p] == 1)
{
if(TrafficLeftState[p] == 1)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, -0.524999,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, -0.524999,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 2;
}
else if(TrafficLeftState[p] == 2)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, -0.375000,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, -0.375000,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 3;
}
else if(TrafficLeftState[p] == 3)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, -0.150000,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, -0.150000,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 4;
}
else if(TrafficLeftState[p] == 4)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, 0.000000,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, 0.000000,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 5;
}
else if(TrafficLeftState[p] == 5)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, 0.225000,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, 0.225000,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 6;
}
else if(TrafficLeftState[p] == 6)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, 0.375000,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, 0.375000,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 7;
}
else if(TrafficLeftState[p] == 7)
{
DestroyObject(tobj1[p]);
DestroyObject(tobj2[p]);
tobj1[p] = CreateObject(19284,0,0,-1000,0,0,0,100);
tobj2[p] = CreateObject(19283,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(tobj1[p], p, 0.599999,-1.050000,0.375000,0.000000,0.000000,0.000000);
AttachObjectToVehicle(tobj2[p], p, 0.599999,-1.050000,0.375000,0.000000,0.000000,0.000000);
TrafficLeftState[p] = 1;
}
}
}
return 1;
}