26.12.2011, 06:08
(
Последний раз редактировалось Danyal; 26.12.2011 в 10:44.
)
SOLVED
new Float:elegies[20][6]
//Enumeration for spawn data for elegies.
enum ELEGY_SPAWN_DATA
{
/* Float tagged variables */
Float:X,
Float:Y,
Float:Z,
Float:ZRot,
/* Untagged variables */
_:Col1,
_:Col2,
}
//Create a new array, infinite amount of elements and with the ELEGY_SPAWN_DATA enum, to define what types we have in there.
new elegies[ ][ ELEGY_SPAWN_DATA ] =
{
{-1614.635131, 1007.885314, 6.847799, 250.569107, 17, 1 }
//...
};
elegies[ i ][ Col1 ] = 1;
//.. is the same as ..
elegies[ i ][ 5 ] = 1;
public Spawnelegies()
{
for(new i=0; i<20; i++)
{
elegy[i] = AddStaticVehicle(562,elegies[i][X],elegies[i][Y],elegies[i][Z],elegies[i][ZRot],elegies[i][Col1],elegies[i][Col2]);
SetVehicleVirtualWorld(elegy[i],0);
}
return 1;
}