Savchik Blazer
01.07.2022, 12:39
Написал вот такой код, но он не работает
C++:
std
::
string comm
=
commandtext
;
std
::
smatch chatres
;
if
(
std
::
regex_match
(
comm
,
chatres
,
std
::
regex
(
"/id%d"
)
)
)
{
SF
->
getSAMP
(
)
->
getChat
(
)
->
AddChatMessage
(
-
1
,
"%d"
,
chatres
[
1
]
.
str
(
)
.
c_str
(
)
)
;
}
Commandtext - это текст хукнутой команды
C++:
std
::
string comm
=
commandtext
;
std
::
smatch chatres
;
if
(
std
::
regex_match
(
comm
,
chatres
,
std
::
regex
(
"/id%d"
)
)
)
{
SF
->
getSAMP
(
)
->
getChat
(
)
->
AddChatMessage
(
-
1
,
"%d"
,
chatres
[
1
]
.
str
(
)
.
c_str
(
)
)
;
}
Commandtext - это текст хукнутой команды