28.07.2010, 09:22
Try this:
Код:
new Float:gObjects[6][6] = { 1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0, 1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0, 1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0, 1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0, 1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0, 1235.12, 2322.23, 55.23, 0.0, 0.0, 0.0 }; new gObjectsID[6] = { 2323, 2323, 2323, 2323, 2323, 2323 }; new Float:ObjConfig[6][4] = { -1, -1, -1, 300.0, -1, -1, -1, 300.0, -1, -1, -1, 300.0, -1, -1, -1, 300.0, -1, -1, -1, 300.0, -1, -1, -1, 300.0, }; //and then a function to create it. for(new i = 0; i < 6; i++)//Looping through 6, since there are only 6 objects. { CreateDynamicObject(gObjectID[i], gObject[i][0], gObject[i][1], gObject[i][2], gObject[i][3], gObject[i][4], gObject[i][5], ObjConfig[i][0], ObjConfig[i][1], ObjConfig[i][2]); }