Code Monkey home page Code Monkey logo

sampvoice's Introduction

SAMPVOICE

Description


SAMPVOICE - is a Software Development Kit (SDK) for implementing voice communication systems in the Pawn language for SA:MP servers.

Version support


  • Client: SA:MP 0.3.7 (R1, R3)
  • Server: SA:MP 0.3.7 (R2)

Features


  • Controlled voice transmission
  • Player microphone control
  • Binding a voice stream to game objects
  • And many more features...

Installation


For the plugin to work, it must be installed by players and on server. There is a client and server part of the plugin for this.

For players


Players have access to 2 installation options: automatic (via the installer) and manual (via the archive).

Automatically

  1. In order to download the installer, head over to the releases page and choose the desired version of the plugin.
  2. After downloading, launch the installer. The installer will automatically find your GTA San Andreas folder.
  3. If the directory is correct, click "Next" and wait for the installation to complete. After, click "Finish" to close the installer.
Manually

  1. Head over the releases page and download the archive with the desired client version.
  2. Extract the archive to your GTA San Andreas folder with the replacement of files.

For developers


  1. Download from the releases page the desired version of the plugin for your platform.
  2. Unpack the archive to the root directory of the server.
  3. Add to the server.cfg server configuration file the line "plugins sampvoice" for Win32 and "plugins sampvoice.so" for Linux x86. (If you have a Pawn.RakNet plugin be sure to place SampVoice after it)

Usage


To get started using the plugin, read the documentation that comes with the server side. To do this, open the sampvoice.chm file using the Windows reference. (If the documentation does not open, right-click on the documentation file, then Properties -> Unblock -> OK)

To start using the plugin functionality, include the header file:

#include <sampvoice>

Quick reference


You need to know that the plugin uses its own types and constant system. Despite the fact that this is just a wrapper over the basic types of Pawn, it helps to navigate the types of the plugin itself and not to confuse pointers.

To redirect audio traffic from player A to player B, you need to create an audio stream (using SvCreateStream), then attach it to speaker-channel of player A (using SvAttachStream), then attach player B to the audio stream (using SvAttachListener). Done, now when player A's microphone is activated (for example, with the SvPlay function), his audio traffic will be transmitted and then listened to by player B.

Sound streams are pretty handy. They can be visualized using the example of Discord:

  • A stream is an analogue of a room (or channel).
  • Speakers are participants in the room with speakers off but microphone on.
  • Listeners are participants in the room with their microphone off but speakers on.

Players can be both speakers and listeners at the same time. In this case, the player's audio traffic will not be forwarded to him.

Example


Let's take a look at some of the plugin's features with a practical example. Below we will create a server that will bind all connected players to the global stream, and also create a local stream for each player. Thus, players will be able to communicate through the global (heard equally at any point on the map) and local (heard only near the player) chats.

#include <sampvoice>

#define GLOBAL_CHANNEL 0
#define  LOCAL_CHANNEL 1

new SV_UINT:gstream = SV_NONE;
new SV_UINT:lstream[MAX_PLAYERS] = { SV_NONE, ... };

public OnPlayerConnect(playerid)
{
    if (SvGetVersion(playerid) == 0) // Checking for plugin availability
    {
        SendClientMessage(playerid, -1, "Failed to find plugin.");
    }
    else if (SvHasMicro(playerid) == SV_FALSE) // Checking for microphone availability
    {
        SendClientMessage(playerid, -1, "Failed to find microphone.");
    }
    else
    {
        if (gstream != SV_NONE)
        {
            SvSetKey(playerid, 0x5A, GLOBAL_CHANNEL); // Z key
            SvAttachStream(playerid, gstream, GLOBAL_CHANNEL);
            SvAttachListener(gstream, playerid);
            SvSetIcon(gstream, "speaker");

            SendClientMessage(playerid, -1, "Press Z to talk to global chat.");
        }
        if ((lstream[playerid] = SvCreateStream(40.0)) != SV_NONE)
        {
            SvSetKey(playerid, 0x42, LOCAL_CHANNEL); // B key
            SvAttachStream(playerid, lstream[playerid], LOCAL_CHANNEL);
            SvSetTarget(lstream[playerid], SvMakePlayer(playerid));
            SvSetIcon(lstream[playerid], "speaker");

            SendClientMessage(playerid, -1, "Press B to talk to local chat.");
        }
    }
}

public OnPlayerDisconnect(playerid, reason)
{
    // Removing the player's local stream after disconnecting
    if (lstream[playerid] != SV_NONE)
    {
        SvDeleteStream(lstream[playerid]);
        lstream[playerid] = SV_NONE;
    }
}

public OnGameModeInit()
{
    // Uncomment the line to enable debug mode
    // SvEnableDebug();

    gstream = SvCreateStream();
}

public OnGameModeExit()
{
    if (gstream != SV_NONE)
    {
        SvDeleteStream(gstream);
        gstream = SV_NONE;
    }
}

Compiling


Plugin compiles for Win32 and Linux x86 platforms. Compiled files will be in sampvoice/binaries directory.

Below are further instructions:

Clone the repository to your computer and go to the plugin directory:

git clone https://github.com/CyberMor/sampvoice.git
cd sampvoice

Windows (Client/Server)


To compile the client side of the plugin, you need the DirectX 9 SDK. By default, the client part is compiled for version SA: MP 0.3.7 (R1), but you can also explicitly tell the compiler the version for the build using the SAMP_R1 and SAMP_R3 macros. In order to build the client and server parts of the plugin for the Win32 platform, open the sampvoice.sln project in Visual Studio 2019 (or higher) and compile it:

Build -> Build Solution (F7)

Linux (Ubuntu 20.04) (Server)


Make sure you have all dependencies installed:

sudo apt install build-essential gcc-multilib g++-multilib

To build the control-server for the Linux x86 platform, follow these instructions:

cd control
make
cd ..

To build the voice-server for the Linux x86 platform, follow these instructions:

cd voice
make
cd ..

sampvoice's People

Contributors

0x416c69 avatar alf-one avatar athallahdzaki avatar cybermor avatar ihnify avatar kaperstone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sampvoice's Issues

NATIVES

I need support, I don't know where to put it to be able to hear and speak, I don't know how to put the native ones, if someone gives me a support, with the code just to listen to the location, the rest I do

Voice Not Heared

Voice with default gamemode isn't work. Anyone can help? or pull it.

Everything works well except OnPlayerVoice is not called

public SV_BOOL:OnPlayerVoice(
    SV_UINT:playerid,
    SV_PACKET:packet,
    SV_UINT:volume
) {
    
    // Îòïðàâèòü ïàêåò â ïîòîê ãîâîðÿùåãî èãðîêà
    if (sgstream[playerid]) sv_packet_send(packet, sgstream[playerid]);
    SendClientMessageToAll(-1, "Test");
    // Óäàëèòü ïàêåò
    return SV_TRUE;
    
}

Please Help Me

No One Hear Me And I Can't Hear Anyone. but My Plugin Working Perfectly

Something is Failing To Load Samp Voice

SAMPFUNCS v5.4.1-final rel.21 (SA-MP 0.3.7-R1)
Compiled: Dec 24 2018 03:13:37

Copyright (c) 2013-2018, BlastHack Team <blast.hk>

Base address: 0x5FBA0000.
Initializing opcodes...
Opcodes initialized successfully. Total opcodes: 382.
Hook "CTimer::GetRealTimeScale" installed.
Hook "CPad::Update" installed.
Hook "CCamera::RenderMotionBlur" installed.
Hook "CScriptThread::AddScriptToQueue" installed.
Hook "CScriptThread::RemoveScriptFromQueue" installed.
Hook "CScriptThread::Process" installed.
Hook "WinMainLoop" installed.
Hook "CLoadingScreen::RenderSplash" installed.
Hook "CVehicle::CVehicle" installed.
Hook "CVehicle::~CVehicle" installed.
Hook "CPed::CPed" installed.
Hook "CPed::~CPed" installed.
samp.dll base addres: 0x03C80000
Hook "SAMP: CNetGame::CNetGame" installed.
Hook "SAMP: CDialog::Close" installed.
Hook "SAMP: QuitGame" installed.
Hook "SAMP: CCmdWindow::ProcessInput" installed.
[ML] (system) Session started.
[ML]
MoonLoader v.026.5-beta loaded.
[ML] Developers: FYP, hnnssy, EvgeN 1137

[ML] Copyright (c) 2016, BlastHack Team
[ML] http://blast.hk/moonloader/

[ML] (info) Working directory: D:\GTAByVernos\moonloader
[ML] (system) Installing pre-game hooks...
[ML] (system) Hooks installed.
**###

  • [ML] (warn) Memory test "BASS_Init" at address 69477B5D has failed. Value is 'E9 2E 96 64 F6', expected 'E9 0E 57 BD F6'.

**
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\AntiCrasher.lua'...
[ML] (system) AntiCrasher.lua: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\AutoReboot.lua'...
[ML] (system) ML-AutoReboot: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\bypasser.lua'...
[ML] (system) bypasser.lua: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\check-moonloader-updates.lua'...
[ML] (system) Check MoonLoader Updates: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\egun.luac'...
[ML] (system) egun.luac: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\reload_all.lua'...
[ML] (system) ML-ReloadAll: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\RMD Project.luac'...
[ML] (system) RMD Project.luac: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\SF Integration.lua'...
[ML] (system) SF Integration: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\takecar.luac'...
[ML] (system) takecar.luac: Loaded successfully.
[ML] (system) Loading script 'D:\GTAByVernos\moonloader\UltraFuck.luac'...
[ML] (error) UltraFuck: D:\GTAByVernos\moonloader\UltraFuck.luac:0: module 'fAwesome5' not found:
no field package.preload['fAwesome5']
no file 'D:\GTAByVernos\moonloader\lib\fAwesome5.lua'
no file 'D:\GTAByVernos\moonloader\lib\fAwesome5\init.lua'
no file 'D:\GTAByVernos\moonloader\fAwesome5.lua'
no file 'D:\GTAByVernos\moonloader\fAwesome5\init.lua'
no file '.\fAwesome5.lua'
no file 'D:\GTAByVernos\moonloader\lib\fAwesome5.luac'
no file 'D:\GTAByVernos\moonloader\lib\fAwesome5\init.luac'
no file 'D:\GTAByVernos\moonloader\fAwesome5.luac'
no file 'D:\GTAByVernos\moonloader\fAwesome5\init.luac'
no file '.\fAwesome5.luac'
no file 'D:\GTAByVernos\moonloader\lib\fAwesome5.dll'
stack traceback:
[C]: in function 'require'
D:\GTAByVernos\moonloader\UltraFuck.luac: in function <D:\GTAByVernos\moonloader\UltraFuck.luac:0>
[ML] (error) UltraFuck: Script died due to an error. (111D0814)
[ML] (system) Installing post-load hooks...
[ML] (system) Hooks installed.
Direct3DDevice9 hook installed.
Hook "SAMP: RakPeer::HandleRPCPacket" installed.
Initializing SAMP data...
Info initialized.
Pools initialized.
Player pool initialized.
Vehicle pool initialized.
Chat initialized.
Input initialized.
Death list initialized.
Dialog initialized.
Misc data initialized.
Scoreboard initialized.
RakNet initialized.
SAMPFUNCS v5.4.1-final rel.21 (SA-MP 0.3.7-R1) completely loaded!

Fuction not registered: problem with includes or plugin?

what can be this error?
I have added the includes in the folder /pawno/includes and /plugins/includes

[13:30:56] Error: Function not registered: 'sv_send_packet'
[13:30:56] Error: Function not registered: 'sv_get_version'
[13:30:56] Error: Function not registered: 'sv_has_micro'
[13:30:56] Error: Function not registered: 'sv_set_key'
[13:30:56] Error: Function not registered: 'sv_dlstream_create_at_player'
[13:30:56] Error: Function not registered: 'sv_stream_delete'

Is this an error in the .so? I need to compile it again?

why isn't like Hyaxe Roleplay?

hai im from nigeria and im have a hosting siteweb where sell hosting and we are developers of san adnreas multi player and we ant to get a voice sistem like hyaxe roleplay.

https://mzunguhosting.ml is our website to make host u know Mustafa is very good supporter, take a look.

Support to SAMP R3 AND R4 ?

Tried install in my client, but don't it work, work only in R1 version

"Could not find plugin sampvoice. "
When i try install in other versions than no be is R1 show this message

Trying to build in Centos6 make error

[root] # make
gcc -m32 -fpack-struct=1 -fpermissive -c -O3 -w -idirafter "sdk" sdk/pawn/amx/.h
g++ -m32 -fpack-struct=1 -fpermissive -c -O3 -w -idirafter "sdk" -std=c++11 sdk/pawn/
.cpp
g++ -m32 -fpack-struct=1 -fpermissive -c -O3 -w -idirafter "sdk" -std=c++11 sdk/raknet/*.cpp
g++ -m32 -fpack-struct=1 -fpermissive -c -O3 -w -idirafter "sdk" -std=c++14 *.cpp
g++ -m32 -fpack-struct=1 -fpermissive -shared -O3 -static-libstdc++ -L/home/servidor/t -lbass -lm -Wl,-rpath,/home/servidor/t -o "sampvoice.so" *.o
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: skipping incompatible /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++.a when searching for -lstdc++
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make: *** [all] Error 1

gcc --version
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

incompatibility with foreach/YSI

I noticed that it doesn't work in my gamemode - only in filterscripts - and after some tests, I found out that there is some kind of incompatibility with foreach and / or YSI library.

In gamemode, when I put #include before #include , I get the following errors:

include\sampvoice.inc(72) : error 025: function heading differs from prototype
include\sampvoice.inc(73) : error 025: function heading differs from prototype
gamemodes \ voicetest.pwn (14): error 025: function heading differs from prototype
gamemodes \ voicetest.pwn (24): error 025: function heading differs from prototype

Error lines:
forward SV_VOID: OnPlayerActivationKeyPress (SV_UINT: playerid, SV_UINT: keyid);
forward SV_VOID: OnPlayerActivationKeyRelease (SV_UINT: playerid, SV_UINT: keyid);

public SV_VOID: OnPlayerActivationKeyPress (
public SV_VOID: OnPlayerActivationKeyRelease (

And when placing #include after #include , no error is displayed, but the voice does not work - voices do not come out.

In filterscript - where there is no use of the foreach and / or YSI library - everything works correctly.

sampvoice version: 3.0-alpha
YSI version: YSI-5.4.102

Is there any solution?

failed to bind voice server

I was testing the plugin when I got the following error "failed to bind voice server" What could it be, has a solution?

Crash with pawn raknet

The latest version (3.1) is always crashing with any version of Pawn.RakNet, both plugins start correctly but when loading all plugins it launches a "Server crashed due to an unknown error"
Note: If I have put sampvoice after pawn raknet and i am using Ubuntu 18.04. By the way, if I put sampvoice without pawn raknet it loads perfectly.

Source code outdated

Hello,

The source code available at the v3.0 alpha release apparently isn't the real 3.0 version, but the 2.0

Could you check this, please?

Thank you!

Client Plugin not initialising

I'm hosting samp server on debian 9 vps. sampvoice client plugin draw start while connecting to my server. But on other voice servers it initialising. Is there any configuration, socket setup or dependency required on vps to initialize plugin of client. I tried my script on other hosts sampvoice is working well. While coming to vps hosting it will not.

Disabling listeners and speakers

I'm trying to disable stream listeners and speakers, but to no avail.

for (new i = 0; i <MAX_PLAYERS; i ++)
{
    SvDetachSpeakerFromStream (lstream [playerid], i); // Disabling all speakers
    SvDetachListenerFromStream (lstream [playerid], i); // Disabling all listeners
}

I'm using it this way, but to no avail. Still listening and talking in the stream.

Language change

Is it possible to get updated client side data, because repository was updated 2 years ago or maybe download but with english version of F11 menu

I have a problem with this plugin

Hello.I have a little problem.
Me and my friend we test it plugin, but he can't hear me and i can't hear he.
sa-mp-001
sa-mp-002

Script here:
https://pastebin.com/NCpsFBbm

Need help with language Menu F11

Hi, I'm Thai. I've been using the SAMPVoice plugin for a while now. The members of I have a problem in the language of F11, because he reads the language Not russian Therefore would like you guys to translate the new plugins, thank you for the good plugins (Wrong, sorry, use translate.google)

Function not registered

[08:41:33]  Loading plugin: sampvoice.so
[08:41:33] [sv:dbg:network:init] : module initializing...
[08:41:33] [dbg:raknet:init] : module initializing...
[08:41:33] [dbg:raknet:init] : module initialized
[08:41:33] [sv:dbg:network:init] : module initialized
[08:41:33] [sv:dbg:main:Load] : creating 8 work threads...
[08:41:33] [sv:dbg:main:AmxLoad] : net game pointer (value:0x9771d38) received
[08:41:33] [sv:dbg:network:bind] : voice server running on port 41178


[08:41:36]    Error: Function not registered: 'SvDeleteStream'
[08:41:36]    Error: Function not registered: 'SvCreateGStream'
[08:41:36]    Error: Function not registered: 'SvGetVersion'
[08:41:36]    Error: Function not registered: 'SvHasMicro'
[08:41:36]    Error: Function not registered: 'SvCreateDLStreamAtPlayer'
[08:41:36]    Error: Function not registered: 'SvAttachListenerToStream'
[08:41:36]    Error: Function not registered: 'SvAddKey'
[08:41:36]    Error: Function not registered: 'SvAttachSpeakerToStream'
[08:41:36]    Error: Function not registered: 'SvDetachSpeakerFromStream'

In log file

SampVoice 3.0 ошибка

Здравствуйте, столкнулся с проблемой.

[21:07:58] [sv:dbg:main:AmxLoad] : net game pointer (value:0x8aebf28) received
[21:07:58] [sv:dbg:network:bind] : voice server running on port 36832
[21:07:58] Loaded 1 filterscripts.

[21:07:58] [sv:dbg:main:AmxLoad] : failed to bind voice server

Как это решить?Использовал код из описания.

I need help my samp-voice is not heard

I have this problem when opening the samp-server.exe that is the code that generates the svlog.txt

[18:13:46] : [sv:dbg:network:init] : module initializing...
[18:13:46] : [dbg:raknet:init] : module initializing...
[18:13:46] : [dbg:raknet:init] : installed hook to 'GetRakServerInterface' function (ptr:0044FAD0)
[18:13:46] : [dbg:raknet:init] : installed hook to 'OnPlayerDisconnect' function (ptr:0046D970)
[18:13:46] : [dbg:raknet:init] : module initialized
[18:13:46] : [sv:dbg:network:init] : module initialized
[18:13:46] : [sv:dbg:pawn:init] : module initializing...
[18:13:46] : [sv:dbg:pawn:init] : module initialized
[18:13:46] : -------------------------------------------
[18:13:46] : ___ __ __ _
[18:13:46] : / | __ _ _ __ _ \ \ / / () __ ___
[18:13:46] : _
/ ` | ' | ' \ / _ | |/ / -)
[18:13:46] : |
/_,|||| ./_/_/||____|
[18:13:46] : |
|
[18:13:46] : -------------------------------------------
[18:13:46] : SampVoice by MOR loaded
[18:13:46] : -------------------------------------------
[18:13:47] : [sv:dbg:main:AmxLoad] : net game pointer (value:00619B00) received
[18:13:47] : [sv:dbg:network:bind] : voice server running on port 49527
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finded 'OnPlayerActivationKeyPress' callback function (index:1)
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finded 'OnPlayerActivationKeyRelease' callback function (index:2)
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:47] : [sv:dbg:main:AmxLoad] : failed to bind voice server
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyPress' callback function...
[18:13:47] : [sv:dbg:pawn:register] : finding 'OnPlayerActivationKeyRelease' callback function...
[18:13:54] : -------------------------------------------
[18:13:54] : SampVoice unloading...
[18:13:54] : -------------------------------------------
[18:13:55] : [sv:dbg:pawn:free] : module releasing...
[18:13:55] : [sv:dbg:pawn:free] : module released
[18:13:55] : [dbg:raknet:free] : module releasing...
[18:13:55] : [dbg:raknet:free] : module released
[18:13:55] : [sv:dbg:network:free] : module releasing...
[18:13:55] : [sv:dbg:network:free] : module released

please any help will help me but if you have the functional .pwn as I think that is it would be appreciated

SA-MP Voice does not work on the host

Good!
I was doing an implementation of the sampvoice plugin on my server. I tested localhost with some friends and everything was fine! However, when uploading to a server host, it just doesn't work.

Detail: the plugin is connecting and recognizing everyone who has sampvoice installed normally!

I sincerely thank everyone for their help!

Issue with 3.0 alpha

I used the script on the 3.0-alpha release. I found the key code and tried testing it ingame. It does light up, but shows this error:

[ERROR] Unable to identify pool table. Please enter the pool table again.

I am also wondering why the syntax & functions are wildly different in this release? It makes it completely incompatible with the older script I made. Also, has the release script for 3.0-alpha been tested?

Any Help?

[20:25:57] Loading plugin: sampvoice.so
[20:25:57] [sv:dbg:network:init] : module initializing...
[20:25:57] [dbgraknetinit] : module initializing...
[20:25:57] [dbgraknetinit] : installed hook to 'GetRakServerInterface' functi$
[20:25:57] [dbgraknetinit] : installed hook to 'OnPlayerDisconnect' function $
[20:25:57] [dbgraknetinit] : module initialized
[20:25:57] [sv:dbg:network:init] : module initialized
[20:25:57] -------------------------------------------
[20:25:57] _ _
[20:25:57] / | \ \ / / () _
[20:25:57] \ / ` | ' | ' \ / | |/ / -)
[20:25:57] |__/
,|||| .///||____|
[20:25:57] ||
[20:25:57] -------------------------------------------
[20:25:57] SampVoice by MOR loaded
[20:25:57] -------------------------------------------

[sv:err:network:serverInfo] : connect error.

Hello, could you help me with something? I use sampvoice on my server, the computer works normally, now on Android, it fails to connect, would you know what it could be?
Plugins I use:
crashdetect sampvoice sscanf streamer audio ColAndreas ctime filemanager MapAndreas mysql pawncmd pawnregex whirlpool xml
112

Where add this

Where add this script ? And why i'am not hear another player ?
SCRIPT: sv_stream_player_attach(stream, playerid)

Bug

The voice does not come out

3.0, not heard

Hello, there is a bug in version 3.0 alpha, I am not listening to my friend and he is not listening to me, activate the debugmode and the only error is the following: [sv: dbg: main: AmxLoad]: failed to bind voice server

3.0 Alpha Voice Not Heard

Hello i am using version 3.0 and my script is same as examples.
when the client hold z or b OnPlayerActivationKeyPress is called and SvAttachSpeakerToStream works but the sound cannot be heared by other clients.

please help me i really need this to work :(

SAMP 0.3DL Servers doesn't work with voice

SA-MP 0.3DL
Exception At Address: 0x644EADFC in sampvoice.asi+0x3ADFC
Exception: 0xC0000005 - Access violation reading location 0x00000000

Registers:
EAX: 0x0BAF8D28 EBX: 0x043A7830 ECX: 0x00000000 EDX: 0x01A00000
ESI: 0x11C8ACF4 EDI: 0x03EAF50D EBP: 0x0177F324 ESP: 0x0177F300
EFLAGS: 0x00210216

Backtrace:
0x644EADFC in sampvoice.asi+0x3ADFC
0x11C8ACF4 in unknown
0x03E42898 in samp.dll+0xB2898
0x03E42B2F in samp.dll+0xB2B2F

ASI plugins:
audio.asi
NormalMapFix.asi
OutFitFix.asi
samp.asi
SAMPGraphicRestore.asi
sampvoice.asi
ShellFix.asi
StreamMemFix.asi

Address code: 8B 11 89 55 E0
Before address code: 0D B4 A8 4F 64

Crash module: sampvoice.asi
Size: 308224
CRC32: 697671A6

Stack:
+0000: 0x0177F3F8 0x007F3AD9 0x0BAF8D28 0x0BAF8D28
+0010: 0x0BAF8E90 0x0BAF8E90 0x0BAF8D28 0x0BAF8E90
+0020: 0x0177F3F8 0x03EAF50D 0x11C8ACF4 0x0177F444
+0030: 0x0177F344 0x043A7830 0x00727200 0x00000002
+0040: 0x11C8ACF4 0x03E42898 0x0177F3B1 0x03E42B2F
+0050: 0x0177F368 0x0177F3F8 0xFFFFFFFF 0x043A7830
+0060: 0x00000000 0x00000000 0x64616F6C 0x00336373
+0070: 0x00000000 0x00000000 0x00000000 0x00000000

Game work: 3 sec

Pos: 1133.050415 -2038.403442 69.096077

Game Version: US 1.0

Memory: 158 MB
Stream memory: 17/1024 MB

Windows 10 64 bit

Mic not found

Hi i have gotten in a bit of a sticky situation , when i first got the mod the mic was detected but i wasnt allowed to talk because of the rules on the server but i was able to listen to other players , after a few relogs and changing nothing whatsoever, i couldn't hear anyone anymore and the mic was not detected anymore. I have tried reinstalling samp, voice chat, gta sa all together, in different orders and separate and it doesn't seem to work. To me it makes no sense as it used to work so in the same circumstances but now doesnt .
https://gyazo.com/d8531584d95dc7562cb676f89aea2ae2
Cheers.-LEO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.