Answer the question
In order to leave comments, you need to log in
How to do replace and regex_search?
Hello everyone, I'm new to c++, I have a couple of questions.
There is this code:
bool CALLBACK incomingRPC(stRakNetHookParams* params) // определение callback-функции, которая будет вызвана, если от сервера был получен новый RPC.
{
if (params->packetId == ScriptRPCEnumeration::RPC_ScrCreate3DTextLabel)
{
char text[256];
params->bitStream->ResetReadPointer();
params->bitStream->SetReadOffset(0xD8);
SF->getRakNet()->DecodeString(text, 256, params->bitStream);
if (strstr(text,"{73B461}Номер бизнеса: {FFFFFF}")) {
SF->getSAMP()->getChat()->AddChatMessage(-1, "Text: %s", text);
}
};
return true; // успешно завершаем обработку RPC.
};
{73B461}Номер бизнеса: {FFFFFF}154
{73B461}Тип бизнеса: {FFFFFF}Отель
{73B461}Владелец: {FFFFFF}Leonardo_Reyes
{73B461}Крыша: {FFFFFF}ЛКН
{CB2424}Входа нет!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question