Thanks, works fine now!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: habi on Nov 18, 2023, 03:29 AMQuote from: Pun1sh3r on Nov 16, 2023, 11:30 AMGot the same Error, Windows works fine but Linux not, I get also no Information in Server Log about the Plugin
Could you try this console program which connect to discord and post the results
download
Quote from: Roystang on Nov 11, 2023, 06:10 PMany idea why this happens?
linux x64 plugin
QuoteScanning dependencies of target DDiscord
[ 50%] Building CXX object bot/CMakeFiles/DDiscord.dir/discord-client.cpp.o
[100%] Linking CXX shared library libDDiscord.so
/usr/bin/ld: cannot find -ldpp32.lib
collect2: error: ld returned 1 exit status
make[2]: *** [bot/CMakeFiles/DDiscord.dir/build.make:103: bot/libDDiscord.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: bot/CMakeFiles/DDiscord.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
SetJoinMessages(false); //This function will toggle the join messages on or off.
SendDeathMessageToAll(71, player.Name, player.Colour);
SendDeathMessageToAll(72, player.Name, player.Colour);
SetDeathMessages(false); //This function will toggle death messages on or off.
SendDeathMessageToAll(reason, player.Name, player.Colour);
SendDeathMessageToAll(reason, killer.Name, killer.Colour, player.Name, player.Colour);
function SendDeathMessageToPlayer(player, reason, leftName, rgb, rightName = null, rgb2 = null)
{
if (rightName)
{
SendDataToClient(player, 0x01, reason, leftName, rgb.r, rgb.g, rgb.b, rightName, rgb2.r, rgb2.g, rgb2.b);
}
else
{
SendDataToClient(player, 0x01, reason, leftName, rgb.r, rgb.g, rgb.b);
}
return 1;
}
function SendDeathMessageToAll(reason, leftName, rgb, rightName = null, rgb2 = null)
{
for (local plr, i = 0; i < GetMaxPlayers(); i++)
{
plr = FindPlayer(i);
if (plr)
{
if (rightName)
{
SendDataToClient(plr, 0x01, reason, leftName, rgb.r, rgb.g, rgb.b, rightName, rgb2.r, rgb2.g, rgb2.b);
}
else
{
SendDataToClient(plr, 0x01, reason, leftName, rgb.r, rgb.g, rgb.b);
}
}
}
return 1;
}
Quote from: Gulk on Dec 23, 2021, 09:11 PMhttp://u04.vc-mp.org
Thats the official up to date updater link.
Quote from: AdTec_224 on Dec 30, 2020, 01:59 AMAs far as I'm aware it's not a bug, you're just not using the function correctly. It's RGBA not RGB, so the correct line of code for a red marker should be:CreateMarker(player.UniqueWorld, Vector(496.481, -84.883, 10.0304), 4, RGBA(255, 0, 0, 255), 0);
local Marker1 = -1;
local Count = 0;
if(cmd == "marker")
{
if(Count == 0)
{
if(Marker1 != -1)
{
DestroyMarker(Marker1);
Marker1 = -1;
}
Marker1 = CreateMarker(player.UniqueWorld, Vector(496.481, -84.883, 10.0304), 4, RGB(242, 125, 253), 0);
ClientMessage("0: Marker Created!", player, 255, 255, 255);
Count = 1;
}
else if(Count == 1)
{
if(Marker1 != -1)
{
DestroyMarker(Marker1);
Marker1 = -1;
}
Marker1 = CreateMarker(player.UniqueWorld, Vector(480.481, -70.883, 10.0304), 4, RGB(242, 125, 253), 0);
ClientMessage("1: Marker Created!", player, 255, 255, 255);
Count = 0;
}
return 1;
}
Quote from: Xmair on Dec 26, 2020, 08:46 AMDescription
Equipping Brass Knuckles kicks you
Reproducible
Always
What you were doing when the bug happened
Testing
What you think caused the bug
No idea