27.05.2012, 18:15
Hi, I need help with arrays, I have an array of coords for two vehicles which are PD vehicles and I need to use the array coords with AttachObjectToVehicle.
pawn Код:
new Float:PDObjects[2][] = {
{0.009999,3.435001,-0.435000,90.359909,-90.179969,0.000000},
{-0.000000,2.400000,0.075000,89.099983,-89.099983,0.000001}
};
new rand = random(sizeof(PDObjects));
AttachObjectToVehicle(myobject, i, PDObjects[rand][0], PDObjects[rand][1], PDObjects[rand][2], PDObjects[rand][3], PDObjects[rand][4], PDObjects[rand][5]);