Errori i warninzi

Započeo Merks.exe, Maj 11, 2020, 02:19:26 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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: [pawn]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[playerid]);    // 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)
}[/pawn]
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): //

Nisam siguran dal ce ovo raditi, zato sto nikad nisam radio sa tim Voice Chatom, ali aj da probam
[pawn]
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[playerid]);    // 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)
}
[/pawn]

Citat: Teodor poslato Maj 11, 2020, 11:05:14 PRE PODNE
Nisam siguran dal ce ovo raditi, zato sto nikad nisam radio sa tim Voice Chatom, ali aj da probam
[pawn]
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[playerid]);    // 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)
}
[/pawn]

Ne nabijaj postove pisanjem gluposti ovde please~
Dok ne prestanete da gledate front i zapravo malo pogledate svoj back-end od vas skriptera nikada neće biti niti bilo čega drugoga.