24.06.2016, 17:58
I think you can also do the middle one, but then again I'm not great with ternary operators.
Код:
format(list, sizeof(list), "%s%s\t%s\n", list, g_DealerCars[idx][car_Name], (g_VehicleData[g_HouseData[houseid][h_pVehs][i]][v_Parked] > 0) ? ("Parked") : ("Unparked"));