- 667
- 294
Написал вот такой код, но он не работает
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 - это текст хукнутой команды