VoiceChat

Započeo Teodor
16. Maj 2020.
1,058
pregleda
10
postova
Teodor
4
Made Man
16. Maj 2020.
Problem(error/warning): Nije mi jasno kako da ubacim ovo, procitao sve sa GitHuba sto je trebalo i dalje imam errore....
Dio skripte:

public OnPlayerConnect(playerid)
{
    //Voice Chat
    if(sv_get_version(playerid) == SV_NULL)
    {
        SendClientMessage(playerid, -1, ""COL_LIGHTBLUE"[V:RP]"COL_WHITE"Nemate instaliran SAMP Voice Chat!");
        return 0;
    }
    else if(sv_get_version(playerid) < SV_VERSION)
    {
      SendClientMessage(playerid, -1, "You're holding an old version of the plugin, possibly incompatiable. update it.");
    }
    if(!sv_has_micro(playerid))
    {
        SendClientMessage(playerid, -1, ""COL_LIGHTBLUE"[V:RP]"COL_WHITE"Nemas aktiviran mikrofon!");
        return 1;
    }
    player_stream = sv_gstream_create();//210
    sv_stream_player_attach(player_stream, playerid);//211
    sv_set_key(playerid, 0x32);
    return 1;
}


public OnPlayerDisconnect(playerid, reason)
{
//SamoVoice
sv_stream_delete(player_stream);//356
return 1;
}


public SV_BOOL:OnPlayerVoice(SV_UINT:playerid, SV_PACKET:packet, SV_UINT:volume)
{
    sv_send_packet(packet, player_stream); //362
return SV_TRUE; 
}


public OnGameModeInit()
{
//Voice Chat
sv_init(6000, SV_FREQUENCY_VERY_HIGH, SV_VOICE_RATE_100MS); //634
        return 1;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):

C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(210) : error 017: undefined symbol "sv_gstream_create"
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(210) : warning 213: tag mismatch
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(211) : warning 213: tag mismatch
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(356) : warning 213: tag mismatch
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(362) : warning 213: tag mismatch
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(634) : warning 202: number of arguments does not match definition
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(634) : warning 202: number of arguments does not match definition
C:\Users\teodo\Desktop\Moj Server\Skripta\gamemodes\DMTest.pwn(634) : warning 202: number of arguments does not match definition

Slika/video ingame problema(obavezno ako je ingame problem):

Ako Bi mogao neko da objasni kako da ubacim ovaj Voice Chat
PWN|Medis
5
Kingpin
16. Maj 2020.
Pošalji definiciju player_stream
Teodor
4
Made Man
16. Maj 2020.
MEDO wrote on May 16, 2020, 6:39 pm:
Pošalji definiciju player_stream


new SV_GSTREAM:player_stream;  // Global variable that will hold the stream for each player
PWN|Medis
5
Kingpin
16. Maj 2020.
native SV_GSTREAM:SvCreateGStream(SV_UINT:color = SV_NULL, name[] = "");


Pogledaj include file i sve ce ti biti jasno, ne znam na osnovu čega si ti došao do
sv_gstream_create()
kad nikako ne postoji

Ili si prekopirao outdated skriptu negdje što je 99% ovdje stvar
Teodor
4
Made Man
16. Maj 2020.
MEDO wrote on May 16, 2020, 6:52 pm:
native SV_GSTREAM:SvCreateGStream(SV_UINT:color = SV_NULL, name[] = "");


Pogledaj include file i sve ce ti biti jasno, ne znam na osnovu čega si ti došao do
sv_gstream_create()
kad nikako ne postoji

Ili si prekopirao outdated skriptu negdje što je 99% ovdje stvar

Tako mi je pisalo na README u Sampvoice
PWN|Medis
5
Kingpin
16. Maj 2020.
Pa to je outdated onda, uzmi otvori include file i lijepo koristi to, nije uopce komplikovano
Teodor
4
Made Man
16. Maj 2020.
MEDO wrote on May 16, 2020, 6:59 pm:
Pa to je outdated onda, uzmi otvori include file i lijepo koristi to, nije uopce komplikovano


I dalje mi nije jasno kako to da ubacim....
PWN|Medis
5
Kingpin
16. Maj 2020.
Teodor wrote on May 16, 2020, 7:10 pm:
I dalje mi nije jasno kako to da ubacim....


Onda kreni od osnova pawno skriptanja, niko ti nece ovdje to raditi jer im je dosadno u životu.

Evo kako vidim sad na githubu, imaš primjer skripte, skineš i po njoj radiš.
Teodor
4
Made Man
16. Maj 2020.
Moze neko da mi da plugin za ovaj SampVoice posto ja nmg da ga nadjem ovde
https://github.com/CyberMor/sampvoice
PWN|Medis
5
Kingpin

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha