10/07/2021 16:46
(10/07/2021 15:20)xbruno1000x Escreveu:(10/07/2021 08:16)robertjwx Escreveu: Agora com o samp voice plugin, muitos players estão me pedindo pra colocar isso pra funcionar no servidor...
Eu coloquei em meu servidor (rodando em uma VPS), mas está crashando o servidor e fechando tudo...
Alguém aqui teve problemas como esse?
server_log logs:
Código:[13:43:34] [connection] incoming connection: PLAYER_IP:60365 id: 0
[13:44:22] [connection] incoming connection: PLAYER_IP:52750 id: 0
[13:44:29] [sv:dbg:network:connect] : connecting player (0) with address (PLAYER_IP) ...
[13:44:29] [sv:dbg:network:connect] : player (0) assigned key (f2b960b17e219403)
[13:44:29] [join] PLAYER_NAME has joined the server (0:PLAYER_IP)
[13:44:29] [sv:dbg:network:receive] : player (0) identified (port:60584)
[13:45:13] [sv:dbg:network:connect] : disconnecting player (0) ...
[13:45:13] [part] PLAYER_NAME has left the server (0:0)
[13:45:32] [connection] incoming connection: PLAYER_IP:49347 id: 0
[13:45:36] [sv:dbg:network:connect] : connecting player (0) with address (PLAYER_IP) ...
[13:45:36] [sv:dbg:network:connect] : player (0) assigned key (f2b960b1bd84cfcd)
[13:45:36] [join] PLAYER_NAME has joined the server (0:PLAYER_IP)
[13:45:37] [sv:dbg:network:receive] : player (0) identified (port:53049)
[13:46:07] [debug] Server crashed due to an unknown error
[13:46:07] [debug] Native backtrace:
[13:46:07] [debug] #0 f7344f7f in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[13:46:07] [debug] #1 f733d81d in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[13:46:07] [debug] #2 f733de48 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[13:46:07] [debug] #3 f733f5dc in _ZN11CrashDetect7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[13:46:07] [debug] #4 f734479f in ?? () in plugins/crashdetect.so
[13:46:07] [debug] #5 f7745cb0 in __kernel_rt_sigreturn () in linux-gate.so.1
[13:46:07] [debug] #6 0809621e in ?? () in ./samp03svr
[13:46:07] [debug] #7 f5c1372a in _ZN4Pawn34OnPlayerActivationKeyReleaseForAllEth () in plugins/sampvoice.so
[13:46:07] [debug] #8 c6f51400 in ?? ()
[13:46:07] [debug] Registers:
[13:46:07] [debug] EAX: 00000042 EBX: 39515816 ECX: 00000001 EDX: 09fe74b0
[13:46:07] [debug] ESI: 0a2eda80 EDI: 00000000 EBP: fff33fe8 ESP: fff33fe4
[13:46:07] [debug] EIP: 0809621e EFLAGS: 00010282
[13:46:07] [debug] Stack:
[13:46:07] [debug] ESP+00000000: f5d29000 fff34018 f5c1372a 09fe74b0
[13:46:07] [debug] ESP+00000020: f5ba451c 0a2edac0 00000042 f7755eeb
[13:46:07] [debug] ESP+00000040: f775c5f0 f5c136bd f5d29000 fff34068
[13:46:07] [debug] ESP+00000060: 00000042 f5d29000 f5c19ab7 003d4ed5
[13:46:07] [debug] ESP+00000080: 0000a2b2 0b3bfba0 c6f51400 0977c1d0
[13:46:07] [debug] ESP+000000a0: 08159cf3 fff34098 080d1ce2 0979d488
[13:46:07] [debug] ESP+000000c0: 3bb04ab6 fff340c8 3bb04ab6 00000005
[13:46:07] [debug] ESP+000000e0: 2be6389d fff34208 080aa13a 0979d488
[13:46:07] [debug] ESP+00000100: 00000000 f77101d0 00000000 fff3410c
[13:46:07] [debug] ESP+00000120: f775c5f0 f762138b 01003994 00010100
[13:46:07] [debug] ESP+00000140: 65646f6d f7003531 f7678910 f7711000
[13:46:07] [debug] ESP+00000160: f77121a0 08048b10 fff341b8 f776b000
[13:46:07] [debug] ESP+00000180: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP+000001e0: 00000000 00000000 00000000 00000000
[13:46:07] [debug] ESP+00000200: 00000000 00000000 f739ea3b f75243dc
[13:46:07] [debug] ESP+00000220: f7524000 00000000 f7388286 00000001
[13:46:07] [debug] ESP+00000240: 00000000 f7524000 f776bc0c f776b000
[13:46:07] [debug] ESP+00000260: ba4d8b69 2dcd2778 00000000 00000000
[13:46:07] [debug] ESP+00000280: f775c5f0 f7388199 f776b000 00000001
[13:46:07] [debug] ESP+000002a0: 00000001 fff342a4 08150650 08150640
[13:46:07] [debug] ESP+000002c0: fff35e6e 00000000 fff35e7a fff35ead
[13:46:07] [debug] ESP+000002e0: fff35efc fff35f1c fff35f2f fff35f43
[13:46:07] [debug] ESP+00000300: fff35f8f fff35fd1 fff35fdf 00000000
[13:46:07] [debug] ESP+00000320: 00000010 178bfbff 00000006 00001000
[13:46:07] [debug] ESP+00000340: 00000004 00000020 00000005 00000008
[13:46:07] [debug] ESP+00000360: 00000009 0804b4c0 0000000b 00000000
[13:46:07] [debug] ESP+00000380: 0000000e 00000000 00000017 00000000
[13:46:07] [debug] ESP+000003a0: 0000000f fff343ab 00000000 00000000
[13:46:07] [debug] ESP+000003c0: 901c7bff 6933cfe7 00363836 00000000
[13:46:07] [debug] ESP+000003e0: 00000000 00000000 00000000 00000000
[13:46:07] [debug] Loaded modules:
[13:46:07] [debug] 00000000 - 00187dc3 samp03svr
[13:46:07] [debug] f7745000 - f7745e2e linux-gate.so.1
[13:46:07] [debug] f7732000 - f77349c4 /lib/i386-linux-gnu/libdl.so.2
[13:46:07] [debug] f7715000 - f773075b /lib/i386-linux-gnu/libpthread.so.0
[13:46:07] [debug] f759b000 - f771ebbf /usr/lib/i386-linux-gnu/libstdc++.so.6
[13:46:07] [debug] f7546000 - f759a120 /lib/i386-linux-gnu/libm.so.6
[13:46:07] [debug] f7528000 - f7544354 /lib/i386-linux-gnu/libgcc_s.so.1
[13:46:07] [debug] f7370000 - f752e73b /lib/i386-linux-gnu/libc.so.6
[13:46:07] [debug] f7747000 - f776b06c /lib/ld-linux.so.2
[13:46:07] [debug] f7325000 - f736d3d4 plugins/crashdetect.so
[13:46:07] [debug] f6f8f000 - f732a009 plugins/mysql.so
[13:46:07] [debug] f6f64000 - f6f8eb45 /root/sampserver/plugins/../log-core.so
[13:46:07] [debug] f6f5b000 - f6f6247c /lib/i386-linux-gnu/librt.so.1
[13:46:07] [debug] f5f46000 - f5f570d0 /lib/i386-linux-gnu/libnss_files.so.2
[13:46:07] [debug] f5f35000 - f5f449b4 plugins/sscanf.so
[13:46:07] [debug] f5d3a000 - f5dff740 plugins/streamer.so
[13:46:07] [debug] f5b8b000 - f5d444d5 plugins/sampvoice.so
samp voice code:
Código:// samp voice 1
#include <sampvoice>
// / fim includes
// samp voice 2
new SV_GSTREAM:gstream = SV_NULL;
new SV_LSTREAM:lstream[MAX_PLAYERS] = { SV_NULL, ... };
public SV_VOID:OnPlayerActivationKeyPress(SV_UINT:playerid, SV_UINT:keyid)
{
// Attach player to local stream as speaker if 'B' key is pressed
if (keyid == 0x42 && lstream[playerid]) SvAttachSpeakerToStream(lstream[playerid], playerid);
// Attach the player to the global stream as a speaker if the 'Z' key is pressed
if (keyid == 0x5A && gstream) SvAttachSpeakerToStream(gstream, playerid);
}
public SV_VOID:OnPlayerActivationKeyRelease(SV_UINT:playerid, SV_UINT:keyid)
{
// Detach the player from the local stream if the 'B' key is released
if (keyid == 0x42 && lstream[playerid]) SvDetachSpeakerFromStream(lstream[playerid], playerid);
// Detach the player from the global stream if the 'Z' key is released
if (keyid == 0x5A && gstream) SvDetachSpeakerFromStream(gstream, playerid);
}
public OnPlayerConnect(playerid) {
Código:// samp voice 3
// Checking for plugin availability
if (SvGetVersion(playerid) == SV_NULL)
{
SendClientMessage(playerid, -1, "Could not find plugin sampvoice.");
}
// Checking for a microphone
else if (SvHasMicro(playerid) == SV_FALSE)
{
SendClientMessage(playerid, -1, "The microphone could not be found.");
}
public OnPlayerDisconnect(playerid, reason) {
Código:// samp voice 4
// Removing the player's local stream after disconnecting
if (lstream[playerid])
{
SvDeleteStream(lstream[playerid]);
lstream[playerid] = SV_NULL;
}
public OnGameModeInit() {
Código:// samp voice 5
gstream = SvCreateGStream(0xffff0000, "Global");
public OnGameModeExit() {
Código:// samp voice 6
if (gstream) SvDeleteStream(gstream);
from: https://github.com/CyberMor/sampvoice
Cade o SvAddKey para adicionar as teclas do VOIP?
Opa, obrigado, esqueci de compiar uma parte do onplayerconnect
Editei