ezjson_object_set_number(eObject, "message_thread_id", eData[PUNISHMENT_THREAD_ID]);
в функции BuildRequest
if(szMsgThread[0][0] != EOS)
{
trim(szTgChat);
strtok(szMsgThread[0], szMsgThread[0], charsmax(szMsgThread[]), szMsgThread[1], charsmax(szMsgThread[]), ':');
eData[PUNISHMENT_THREAD_ID] = str_to_num(szMsgThread[0]);
eData[REPORT_THREAD_ID] = str_to_num(szMsgThread[1]);
} else {
eData[PUNISHMENT_THREAD_ID] = INVALID_HANDLE;
eData[REPORT_THREAD_ID] = INVALID_HANDLE;
}
ezjson_object_set_number(eObject, "message_thread_id", eData[PUNISHMENT_THREAD_ID]);
enum _:ChatData {
CHAT_ID[32],
PUNISHMENT_THREAD_ID[32],
REPORT_THREAD_ID[32]
};
if(szMsgThread[0][0] != EOS) {
trim(szMsgThread[0]);
strtok(szMsgThread[0], eData[PUNISHMENT_THREAD_ID], charsmax(eData[PUNISHMENT_THREAD_ID]), eData[REPORT_THREAD_ID], charsmax(eData[REPORT_THREAD_ID]), ':');
} else {
eData[PUNISHMENT_THREAD_ID] = INVALID_HANDLE;
eData[REPORT_THREAD_ID] = INVALID_HANDLE;
}
ezjson_object_set_string(eObject, "message_thread_id", eData[PUNISHMENT_THREAD_ID]);
ezjson_object_set_number(eObject, "message_thread_id", eData[REPORT_THREAD_ID]);
-> ezjson_object_set_string(eObject, "message_thread_id", eData[REPORT_THREAD_ID]);
HAFAH9, in includes is really an extra letter s, maybe that's where the error comes from. But in the names of the plugins and in the ini file, everything is fine, there are no extra letters