18.01.2019, 14:45
You mean do something like this?
PHP код:
enum Example_Enum
{
Model,
Float:PX,
Float:PY,
Float:PZ,
Float:ANGLE,
COLOR1,
COLOR2
};
new Example[][Example_Enum] =
{
{420, 1783.2333, -1932.4965, 13.0518, 0.0000, -1, -1},
{438, 1775.7085, -1916.0463, 13.2772, 0.0000, -1, -1},
{420, 1805.3810, -1917.4658, 13.1195, 0.0000, -1, -1}
};
PHP код:
//OnGameModeInit
for(new i = 0; i != sizeof Example; i ++)
{
new vehicleid = INVALID_VEHICLE_ID_
vehicleid = CreateVehicle(Example[i][Model], Example[i][PX], Example[i][PY], Example[i][PZ], Example[i][ANGLE], Example[i][COLOR1], Example[i][COLOR2], 200, false);
if(vehicleid == INVALID_VEHICLE_ID) continue;
}