Errori i warninzi

Započeo Merks.exe
11. Maj 2020. Zaključano
547
pregleda
3
postova
Merks.exe
3
Street Runner
11. Maj 2020.
Problem(error/warning): Ubacio sam voice chat i dodao sam onplayervoice koji imate ispod i iskocila su mi 4 errora i 1 warning
Dio skripte:
public SV_BOOL:OnPlayerVoice(
    SV_UINT:playerid,  // ID of the sender
    SV_PACKET:packet,  // Packet descriptor
    SV_UINT:volume      // Volume level [0-32768]
) {
    sv_send_packet(packet, player_stream);    // Sending back to the player
    sv_stream_player_attach(stream, playerid);          // Send to the player
return SV_TRUE;    // Delete the packet? (SV_TRUE - yes, SV_FALSE - no)
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
D:\Ideal Gaming\Fortuna RealLife\filterscripts\voicec.pwn(30) : warning 235: public function lacks forward declaration (symbol "OnPlayerVoice")
D:\Ideal Gaming\Fortuna RealLife\filterscripts\voicec.pwn(35) : error 029: invalid expression, assumed zero
D:\Ideal Gaming\Fortuna RealLife\filterscripts\voicec.pwn(35) : error 029: invalid expression, assumed zero
D:\Ideal Gaming\Fortuna RealLife\filterscripts\voicec.pwn(35) : error 029: invalid expression, assumed zero
D:\Ideal Gaming\Fortuna RealLife\filterscripts\voicec.pwn(35) : fatal error 107: too many error messages on one line

Slika/video ingame problema(obavezno ako je ingame problem): //
Teodor
4
Made Man
11. Maj 2020.
Nisam siguran dal ce ovo raditi, zato sto nikad nisam radio sa tim Voice Chatom, ali aj da probam

public SV_BOOL:OnPlayerVoice()
{
    SV_UINT:playerid,  // ID of the sender
    SV_PACKET:packet,  // Packet descriptor
    SV_UINT:volume      // Volume level [0-32768]
    sv_send_packet(packet, player_stream);    // Sending back to the player
    sv_stream_player_attach(stream, playerid);          // Send to the player
return SV_TRUE;    // Delete the packet? (SV_TRUE - yes, SV_FALSE - no)
}
PabloK
4
Shot Caller
11. Maj 2020.
Teodor wrote on May 11, 2020, 9:05 am:
Nisam siguran dal ce ovo raditi, zato sto nikad nisam radio sa tim Voice Chatom, ali aj da probam

public SV_BOOL:OnPlayerVoice()
{
    SV_UINT:playerid,  // ID of the sender
    SV_PACKET:packet,  // Packet descriptor
    SV_UINT:volume      // Volume level [0-32768]
    sv_send_packet(packet, player_stream);    // Sending back to the player
    sv_stream_player_attach(stream, playerid);          // Send to the player
return SV_TRUE;    // Delete the packet? (SV_TRUE - yes, SV_FALSE - no)
}


Ne nabijaj postove pisanjem gluposti ovde please~

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha