Errori i warninzi

Merks.exe Započeo Merks.exe
pre 5 godina
524
pregleda
3
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Merks.exe
Street Runner
pre 5 godina
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
Made Man
pre 5 godina
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
Shot Caller
pre 5 godina
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