- 1,710
- 1,608
Это получается ты указателю с константными данными изменил данные? Кто шаритЯ размышлял в течение 3-х месяцев и понял, что:
C++:*reinterpret_cast<const char**>(0x74503F) = "\\GTA SA Folder Name";
Это получается ты указателю с константными данными изменил данные? Кто шаритЯ размышлял в течение 3-х месяцев и понял, что:
C++:*reinterpret_cast<const char**>(0x74503F) = "\\GTA SA Folder Name";
void main - UBВозможно ли убрать это:
Посмотреть вложение 150984
И вот это предупреждение:
Посмотреть вложение 150985
Кроме как менять void main() на int main()?
Они не задают мне проблем, просто немного не удобно
Error C1083 No se puede abrir el archivo encabezado precompilado: 'x64\Debug\Chat ImGui.pch': No such file or directory Chat ImGui C:\Users\admin\Desktop\Chat-ImGui-master\Chat ImGui\ChatImGui.cpp 1
Нет, я изменил неконстантный указатель, а не изменил данные указателя с константными даннымиЭто получается ты указателю с константными данными изменил данные? Кто шарит
Как проверить, занято ли транспортное средство?
local res, handle = sampGetCarHandleBySampVehicleId(i)
if res then
if getDriverOfCar(handle) == -1 then
-- code
end
end
CVehicle* handle = reinterpret_cast<CVehicle*>(SF->getSAMP()->getVehicles()->GetCarHandleFromSAMPCarID(vehID));
if (!handle) return;
if (handle->GetDriver())
{
// занято
}
else
{
// свободно
}
Lua:local res, handle = sampGetCarHandleBySampVehicleId(i) if res then if getDriverOfCar(handle) == -1 then -- code end end
Ой, ну не заметил, сейчас добавлю туда c++
есть ли замена этому коду на mod_sa 03dl?Lua:local res, handle = sampGetCarHandleBySampVehicleId(i) if res then if getDriverOfCar(handle) == -1 then -- code end end
C++:CVehicle* handle = reinterpret_cast<CVehicle*>(SF->getSAMP()->getVehicles()->GetCarHandleFromSAMPCarID(vehID)); if (!handle) return; if (handle->GetDriver()) { // занято } else { // свободно }
Как проверить, занято ли транспортное средство?
Work on 03DL
C++:struct vehicle_info *vinfo = vehicle_info_get(GtaVehID, 0); if (vehicle_filter_flags(vinfo, VEHICLE_OCCUPIED)==0) addMessageToChatWindow("empty");
SF->getSAMP()->getVehicles()->GetCarHandleFromSAMPCarID(vehID) замени на g_Vehicles->pSAMP_Vehicle[vehID]->pGTA_Vehicleесть ли замена этому коду на mod_sa 03dl?
SF->getSAMP()->getVehicles()->GetCarHandleFromSAMPCarID(vehID) замени на g_Vehicles->pSAMP_Vehicle[vehID]->pGTA_Vehicle
Как проверить, занято ли транспортное средство?
Work on 03DL
C++:struct vehicle_info *vinfo = vehicle_info_get(GtaVehID, 0); if (vehicle_filter_flags(vinfo, VEHICLE_OCCUPIED)==0) addMessageToChatWindow("empty");
uphow to fix? (Can't open precompiled header file)
C++:Error C1083 No se puede abrir el archivo encabezado precompilado: 'x64\Debug\Chat ImGui.pch': No such file or directory Chat ImGui C:\Users\admin\Desktop\Chat-ImGui-master\Chat ImGui\ChatImGui.cpp 1![]()
GitHub - Northn/Chat-ImGui
Contribute to Northn/Chat-ImGui development by creating an account on GitHub.github.com
Compile in release x86
Зачем создавать лишние файлы в проекте? Не леге отключить pch файлы -_-?![]()
How to fix .pch file missing on build?
When I build my c++ solution in Visual Studio it complains that the xxxxx.pch file is missing. Is there a setting I am missing to get the pre-compiled headers back? here is the exact error forstackoverflow.com