26.01.2018, 15:04
Well I can not overdo this .. it makes me an error :O
PHP код:
for(new s=0; s<5; s++)
{
new V_id[16];
format(V_id, 16, "V%d_id", s);
if(DOF2_GetInt(UserPath(playerid), V_id) > 0)
{
new V_posX[16]; format(V_posX, 16, "V%d_posX", s);
new V_posY[16]; format(V_posY, 16, "V%d_posY", s);
new V_posZ[16]; format(V_posZ, 16, "V%d_posZ", s);
new V_angle[16]; format(V_angle, 16, "V%d_angle", s);
new V_color1[16]; format(V_color1, 16, "V%d_color1", s);
new V_color2[16]; format(V_color2, 16, "V%d_color2", s);
new V_neons[16]; format(V_neons, 16, "V%d_neons", s);
new V_spz[16]; format(V_spz, 16, "V%d_spz", s);
PlayerVehicle[s][playerid] = CreateVehicle(DOF2_GetInt(UserPath(playerid), V_id), DOF2_GetFloat(UserPath(playerid), V_posX), DOF2_GetFloat(UserPath(playerid), V_posY), DOF2_GetFloat(UserPath(playerid), V_posZ), DOF2_GetFloat(UserPath(playerid), V_angle), DOF2_GetInt(UserPath(playerid), V_color1), DOF2_GetInt(UserPath(playerid), V_color2), 300);
if(DOF2_SetInt(UserPath(playerid), V_spz))
{
SetVehicleNumberPlate(PlayerVehicle[s][playerid], DOF2_GetString(UserPath(playerid), V_spz));
SetVehicleToRespawn(PlayerVehicle[s][playerid]);
}
if(DOF2_GetInt(UserPath(playerid), V_neons) > 0)
{
PlayerVehicleNeon1[s][playerid] = CreateObject(DOF2_GetInt(UserPath(playerid), V_neons), -0.66, 0.04, -0.48, 0.00, 0.00, 0.00);
PlayerVehicleNeon2[s][playerid] = CreateObject(DOF2_GetInt(UserPath(playerid), V_neons), 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
AttachObjectToVehicle(PlayerVehicleNeon1[s][playerid], PlayerVehicle[s][playerid], -0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
AttachObjectToVehicle(PlayerVehicleNeon2[s][playerid], PlayerVehicle[s][playerid], 0.68, 0.04, -0.48, 0.00, 0.00, 0.00);
PlayerVehicleNeons[s][playerid] = true;
}
PlayerVehicle_State[s][playerid]=true;
}
}