Czesc mam problem z komplikacją tego pluginu mam erorr:
Nie wiem o co chodzi, próbowalem wszystkiego , jest to plugin który nasłuchuje chat cs1.6 i wysyla to za pomoca webhooków na serwer dc
#include <amxmodx> #include <amxmisc> #include <curl> #define DISCORD_WEBHOOK_URL "https://discord.com/api/webhooks/1115400255769423893/m--KgD8QbRTbScaRPpDboVwYrpZfwl6_LEcKhIVprozUSZWR3D5qYMlUg2i_aOARPaeG" public plugin_init() { register_plugin("Discord Chat Relay", "1.0", "Bing"); register_event("SayText", "event_SayText", "a", "2!=0"); } public event_SayText() { new name[32], message[192]; read_data(1, name, charsmax(name)); read_data(4, message, charsmax(message)); send_discord_message(name, message); } stock send_discord_message(const name[], const message[]) { new webhookUrl[] = DISCORD_WEBHOOK_URL; new webhookData[256]; formatex(webhookData, charsmax(webhookData), "{""content"":""%s: %s""}", name, message); curl_setOpt(CURLOPT_URL, webhookUrl); curl_setOpt(CURLOPT_POST, 1); curl_setOpt(CURLOPT_POSTFIELDS, webhookData); curl_setOpt(CURLOPT_POSTFIELDSIZE, strlen(webhookData)); curl_perform(); }