Vehicle variable
#6

Quote:
Originally Posted by [MWR]Blood
Посмотреть сообщение
pawn Код:
enum Vehs
{
    ModelID,
    Float:X,
    Float:Y,
    Float:Z,
    Float:A,
    color1,
    color2
}
new AP3Array[12][Vehs] =
{
    { 520, 1600.5023, 1188.8260, 11.5386, 42.5816, 0, 0 },
    { 520, 1590.3354, 1186.7863, 11.5350, 37.1616, 0, 0 },
    { 520, 1580.8839, 1183.1765, 11.5400, 37.7007, 0, 0 },
    { 520, 1571.5887, 1177.8109, 11.5293, 359.0632, 0, 0 },
    { 520, 1561.3468, 1186.1890, 11.5304, 332.6406, 0, 0 },
    { 520, 1604.6086, 1174.4469, 14.9483, 36.1946, 0, 0 },
    { 522, 1306.2991, 1278.8601, 10.3917, 358.4577, 6, 25 },
    { 522, 1328.5786, 1279.0802, 10.3895, 177.6847, 7, 79 },
    { 522, 1325.4536, 1279.5922, 10.3917, 359.9543, 8, 82 },
    { 490, 1309.4993, 1279.2419, 10.7624, 359.7906, 0, 0 },
    { 596, 1312.7015, 1279.1237, 10.5508, 359.2922, 0, 1 },
    { 560, 1315.9567, 1278.8680, 10.5251, 0.2303, 9, 39 },
    { 402, 1320.2401, 1279.1045, 10.6519, 0.1929, 13, 13 }
};

 for( new i = 0; i < MAX_AP3_VEHICLES; i ++ )
    {
        AddStaticVehicle(AP3Array[i][ModelID], AP3Array[i][X], AP3Array[i][Y], AP3Array[i][Z], AP3Array[i][A], AP3Array[i][color1], AP3Array[i][color2]);
    }
Thanks, didnt even think of that

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
You can extract them of make all of them become float
pawn Код:
//example
new AP3Array[MAX_AP3_VEHICLES][3] =
{
    { 520, 0, 0 },
    { 520, 0, 0 },
    { 520, 0, 0 },


new Float:blahblahblah[MAX_AP3_VEHICLES][4] =
{
    {1600.5023, 1188.8260, 11.5386, 42.5816},
    {1590.3354, 1186.7863, 11.5350, 37.1616},
    {1580.8839, 1183.1765, 11.5400, 37.7007}
Im just gonna use the other one above; rep for both
Reply


Messages In This Thread
Vehicle variable - by Wesley221 - 25.10.2011, 07:47
Re: Vehicle variable - by =WoR=Varth - 25.10.2011, 07:49
Re: Vehicle variable - by Wesley221 - 25.10.2011, 07:51
Re: Vehicle variable - by [MWR]Blood - 25.10.2011, 07:53
Re: Vehicle variable - by =WoR=Varth - 25.10.2011, 07:54
Re: Vehicle variable - by Wesley221 - 25.10.2011, 08:28

Forum Jump:


Users browsing this thread: 2 Guest(s)