08.11.2010, 16:11
Because you are using integers in a Float variable. (the colors of the vehicle)
See this way, it should work:
See this way, it should work:
pawn Код:
enum vehicleInfo
{
vModel,
Float: vPosX,
Float: vPosY,
Float: vPosZ,
Float: vAngle,
vColor1,
vColor2
}
new Float: VehiclePositions[][vehicleInfo] =
{
{520,-181.9419,2666.8167,64.2911,89.6785,0,0}, // hydra ::: LINE 881
{425,-308.6411,2681.2947,63.8339,270.5902,43,0} // hunter ::: LINE 882
};
pawn Код:
for(new i; i < sizeof(VehiclePositions); i++)
{
AddStaticVehicle(VehiclePositions[i][vModel], VehiclePositions[i][vPosX], VehiclePositions[i][vPosY], VehiclePositions[i][vPosZ], VehiclePositions[i][vAngle], VehiclePositions[i][vColor1], VehiclePositions[i][vColor2]);
}