25.10.2011, 07:47
Hey guys,
Im trying to add all vehicles of a seperate location in one variable. Im not sure what im doing wrong, but can anyone help me out?
'MAX_AP3_VEHICLES' is defined as '50'.
~Wesley
Im trying to add all vehicles of a seperate location in one variable. Im not sure what im doing wrong, but can anyone help me out?
pawn Код:
new AP3Array[MAX_AP3_VEHICLES][7] =
{
{ 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 }
};
pawn Код:
//ongamemodeinit
for( new i = 0; i < MAX_AP3_VEHICLES; i ++ )
{
AddStaticVehicle(AP3Array[i][0], AP3Array[i][1], AP3Array[i][2], AP3Array[i][3], AP3Array[i][4], AP3Array[i][5], AP3Array[i][6]);
}