 |
|

06.06.2022, 21:10
|
|
Участник форума
Регистрация: 16.08.2017
Сообщений: 110
С нами:
4600979
Репутация:
83
|
|
Сообщение от Чёрный вурдалак
SF->getSAMP()->getVehicles()->GetCarHandleFromSAMPCarID(vehID) замени на g_Vehicles->pSAMP_Vehicle[vehID]->pGTA_Vehicle
[S]"SF" и " getSAMP()" для 0.3.7, а не для 0.3DL[/S]
Сообщение от horacy
[S]Как проверить, занято ли транспортное средство?[/S]
Work on 03DL
C++:
Код:
struct
vehicle_info
*
vinfo
=
vehicle_info_get
(
GtaVehID
,
0
)
;
if
(
vehicle_filter_flags
(
vinfo
,
VEHICLE_OCCUPIED
)
==
0
)
addMessageToChatWindow
(
"empty"
)
;
|
|
|

07.06.2022, 01:39
|
|
Участник форума
Регистрация: 27.05.2021
Сообщений: 140
С нами:
2614229
Репутация:
33
|
|
Сообщение от !Sam#0235
how 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
up
|
|
|

07.06.2022, 02:08
|
|
Постоянный
Регистрация: 18.03.2017
Сообщений: 410
С нами:
4818548
Репутация:
133
|
|
Сообщение от !Sam#0235
up
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 for
stackoverflow.com
|
|
|

07.06.2022, 02:13
|
|
Познавший АНТИЧАТ
Регистрация: 29.03.2021
Сообщений: 1,092
С нами:
2698985
Репутация:
88
|
|
Сообщение от !Sam#0235
up
Compile in release x86
Сообщение от RTD
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 for
stackoverflow.com
Зачем создавать лишние файлы в проекте? Не леге отключить pch файлы -_-?
|
|
|

07.06.2022, 02:46
|
|
Постоянный
Регистрация: 18.03.2017
Сообщений: 410
С нами:
4818548
Репутация:
133
|
|
Сообщение от zTechnology
Не леге отключить pch файлы -_-?
Легче, но так задумал Нортон 🌚
|
|
|

07.06.2022, 19:06
|
|
Новичок
Регистрация: 07.06.2022
Сообщений: 10
С нами:
2072534
Репутация:
3
|
|
Парни всем привет,такой вопрос,что можно использовать для поворота мышки на определённые координаты? mouse_event не подойдет,заранее спасибо.
|
|
|

08.06.2022, 10:17
|
|
Познавший АНТИЧАТ
Регистрация: 29.09.2018
Сообщений: 1,292
С нами:
4012500
Репутация:
138
|
|
Сообщение от Daurin
Парни всем привет,такой вопрос,что можно использовать для поворота мышки на определённые координаты? mouse_event не подойдет,заранее спасибо.
циклом через setcursorpos можно
|
|
|

09.06.2022, 01:24
|
|
Участник форума
Регистрация: 27.05.2021
Сообщений: 140
С нами:
2614229
Репутация:
33
|
|
How I can write this values in c++? I took it from one .lua script.
Lua:
Код:
memory
.
hex2bin
(
"E865041C00"
,
0x53C136
,
5
)
memory
.
write
(
12697552
,
1
,
1
,
false
)
--
|
|
|

09.06.2022, 02:21
|
|
Флудер
Регистрация: 06.11.2017
Сообщений: 2,759
С нами:
4483143
Репутация:
183
|
|
Сообщение от !Sam#0235
How I can write this values in c++? I took it from one .lua script.
Lua:
Код:
memory
.
hex2bin
(
"E865041C00"
,
0x53C136
,
5
)
memory
.
write
(
12697552
,
1
,
1
,
false
)
--
C++:
Код:
void
set_raw
(
std
::
uintptr_t address
,
const
char
*
RawData
,
std
::
size_t size
,
bool
protect
)
{
DWORD oldProt
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
size
,
PAGE_READWRITE
,
&
oldProt
)
;
memcpy
(
reinterpret_cast
(
address
)
,
RawData
,
size
)
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
size
,
oldProt
,
&
oldProt
)
;
}
template
inline
void
write_memory
(
std
::
uintptr_t address
,
T value
,
bool
protect
=
true
)
{
unsigned
long
oldProt
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
sizeof
(
T
)
,
PAGE_READWRITE
,
&
oldProt
)
;
*
reinterpret_cast
(
address
)
=
value
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
sizeof
(
T
)
,
oldProt
,
&
oldProt
)
;
}
set_raw
(
0x53C136
,
"\xE8\x65\x04\x1C\x00"
,
5
,
true
)
;
set_raw
(
0xC1BFD0
,
"\x01"
,
1
,
true
)
;
// or WriteMemory(0xC1BFD0, char(1), true);
It is also bad form to write addresses not in hex
|
|
|

09.06.2022, 19:41
|
|
Новичок
Регистрация: 10.10.2021
Сообщений: 15
С нами:
2418048
Репутация:
8
|
|
Сообщение от !Sam#0235
How I can write this values in c++? I took it from one .lua script.
Lua:
Код:
memory
.
hex2bin
(
"E865041C00"
,
0x53C136
,
5
)
memory
.
write
(
12697552
,
1
,
1
,
false
)
--
C++:
Код:
#include "llmo/include/rwe.hpp"
llmo
::
rwe
::
Copy
(
0x53C136
,
"\xE8\x65\x04\x1C\x00"
,
5
)
;
llmo
::
rwe
::
Set
(
0xC1BFD0
,
0x01
,
1
)
;
GitHub - devCarrentine/llmo: Library for low-level memory operations and hooking.
Library for low-level memory operations and hooking. - GitHub - devCarrentine/llmo: Library for low-level memory operations and hooking.
github.com
Сообщение от kin4stat
C++:
Код:
void
set_raw
(
std
::
uintptr_t address
,
const
char
*
RawData
,
std
::
size_t size
,
bool
protect
)
{
DWORD oldProt
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
size
,
PAGE_READWRITE
,
&
oldProt
)
;
memcpy
(
reinterpret_cast
(
address
)
,
RawData
,
size
)
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
size
,
oldProt
,
&
oldProt
)
;
}
template
inline
void
write_memory
(
std
::
uintptr_t address
,
T value
,
bool
protect
=
true
)
{
unsigned
long
oldProt
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
sizeof
(
T
)
,
PAGE_READWRITE
,
&
oldProt
)
;
*
reinterpret_cast
(
address
)
=
value
;
if
(
protect
)
VirtualProtect
(
reinterpret_cast
(
address
)
,
sizeof
(
T
)
,
oldProt
,
&
oldProt
)
;
}
set_raw
(
0x53C136
,
"\xE8\x65\x04\x1C\x00"
,
5
,
true
)
;
set_raw
(
0xC1BFD0
,
"\x01"
,
1
,
true
)
;
// or WriteMemory(0xC1BFD0, char(1), true);
It is also bad form to write addresses not in hex
Исправился, 🐞 аннулирую
|
|
|
|
 |
|
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|