loading vehicles from loop
#2

Because you are using integers in a Float variable. (the colors of the vehicle)

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]);
}
Reply


Messages In This Thread
loading vehicles from loop - by Ribber - 08.11.2010, 15:19
Re: loading vehicles from loop - by RyDeR` - 08.11.2010, 16:11
AW: loading vehicles from loop - by Ribber - 08.11.2010, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)